Update service properties
POST /services/edit/
What It Does
Update supported service data. Use the WordPress administration panel for advanced scheduling, payment, notification, and routing settings.
Authentication
Requires an API token with the write scope. Send it as a bearer token or with the configured API key header.
Parameters
This endpoint does not define query or path parameters.
Request Body
Content type: application/json
Required: Yes
Schema: ServiceEdit
| Field | Required | Type | Description |
|---|---|---|---|
id | Yes | string | Resource identifier used by TheBooking. |
data | No | object | Additional structured data accepted by the route. |
Responses
| Status | Meaning | Description | Body |
|---|---|---|---|
200 | Success | Operation completed | OkEnvelope |
400 | Invalid request | Invalid request or application rule failure | ErrorEnvelope |
401 | Authentication required | Missing or invalid API token | WpRestError |
403 | Forbidden | Token lacks write scope or the operation is forbidden | WpRestError or ErrorEnvelope |
404 | Not found | Resource not found | ErrorEnvelope |
Request Example
curl -X POST "https://example.com/wp-json/thebooking/v1/API/services/edit/" \
-H "Authorization: Bearer $TBK_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "resource_123",
"data": {}
}'
JSON Body
{
"id": "resource_123",
"data": {}
}
Success Response Example
{
"status": "OK"
}