Example request
POST https://api.jupiter-erp.com/api/account/service-order-appointments
Code
curl -X POST 'https://api.jupiter-erp.com/api/account/service-order-appointments' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"service_order_id": 0,
"starts_at": "string",
"ends_at": "string",
"assignee_account_user_id": 0,
"status": "planned"
}'Request body
Required
| Field | Type | Description |
|---|---|---|
| assignee_account_user_id | integer | — |
| ends_at* | string | Must be after starts_at |
| service_order_id* | integer | Service order this appointment belongs to |
| starts_at* | string | Parseable datetime (e.g. Y-m-d H:i or ISO local) |
| status | string | Defaults to planned when omitted string
|
Example request
{
"service_order_id": 0,
"starts_at": "string",
"ends_at": "string",
"assignee_account_user_id": 0,
"status": "planned"
}Responses
201Created
Scheduled dispatch / visit window for a service order (Gantt bar source)
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| assignee | object |
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| assignee_account_user_id | integer | — | |||||||||||||||||||||||||||||||||||||||||||||||||||
| created_at | string (date-time) | Creation timestamp in ISO 8601 format. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ends_at* | string | Local datetime without timezone (Y-m-dTH:i:s) | |||||||||||||||||||||||||||||||||||||||||||||||||||
| id* | integer | — | |||||||||||||||||||||||||||||||||||||||||||||||||||
| service_order* | object | Parent order summary; always present when returned from the API. Parent order summary; always present when returned from the API.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| service_order_id* | integer | — | |||||||||||||||||||||||||||||||||||||||||||||||||||
| starts_at* | string | Local datetime without timezone (Y-m-dTH:i:s) | |||||||||||||||||||||||||||||||||||||||||||||||||||
| status* | string | string
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| updated_at | string (date-time) | Last update timestamp in ISO 8601 format. |
Example response
{
"id": 0,
"service_order_id": 0,
"service_order": {
"id": 0,
"formatted_number": "string",
"subject": "string",
"service_location": "string",
"contact_name": "string",
"status": "open"
},
"starts_at": "2025-01-14T09:00:00",
"ends_at": "2025-01-14T17:00:00",
"assignee_account_user_id": 0,
"status": "planned"
}Service order appointments