> ## Documentation Index
> Fetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Service

> Create a new service.

## Required Parameters

| Parameter | Type   | Description  |
| --------- | ------ | ------------ |
| `name`    | string | Service name |

## Optional Parameters

| Parameter            | Type    | Description                                            |
| -------------------- | ------- | ------------------------------------------------------ |
| `short_description`  | string  | Brief description of the service                       |
| `description`        | string  | Detailed description of the service                    |
| `duration`           | integer | Service duration in minutes (default: 60)              |
| `price_min`          | number  | Minimum price for the service (default: 0)             |
| `price_max`          | number  | Maximum price for the service (default: 0)             |
| `charge_amount`      | number  | Amount to charge for the service (default: 0)          |
| `deposit_amount`     | number  | Deposit amount required (default: 0)                   |
| `capacity_min`       | integer | Minimum capacity (default: 1)                          |
| `capacity_max`       | integer | Maximum capacity (default: 1)                          |
| `order_number`       | integer | Display order number (default: 0)                      |
| `selection_image_id` | integer | Image ID for service selection (default: 0)            |
| `status`             | string  | Service status: active, disabled (default: active)     |
| `visibility`         | string  | Service visibility: visible, hidden (default: visible) |
| `category_id`        | integer | Service category ID                                    |

## Example Request

```bash theme={null}
POST /wp-json/latepoint-api/v1/services
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{
  "name": "General Consultation",
  "short_description": "Standard medical consultation",
  "duration": 60,
  "charge_amount": 100,
  "price_min": 80,
  "price_max": 120
}
```

## Response Example

```json theme={null}
{
  "success": true,
  "message": "Service created successfully",
  "data": {
    "id": 5,
    "name": "General Consultation",
    "short_description": "Standard medical consultation",
    "description": "",
    "duration": 60,
    "price_min": 80,
    "price_max": 120,
    "charge_amount": 100,
    "deposit_amount": 0,
    "capacity_min": 1,
    "capacity_max": 1,
    "order_number": 0,
    "selection_image_id": 0,
    "status": "active",
    "visibility": "visible",
    "category_id": null,
    "created_at": "2025-08-21 09:51:59",
    "updated_at": "2025-08-21 09:51:59"
  }
}
```
