Update supported provider/service properties
POST /providers/edit/service/
What It Does
Update provider-specific service settings exposed by the public API.
Authentication
Requires an API token with the write scope. Send it as a bearer token or with the configured API key header.
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
serviceId | query | Yes | string | TheBooking service identifier. |
providerId | query | Yes | integer or string | TheBooking provider identifier. |
Request Body
Content type: application/json
Required: Yes
Schema: object
No documented properties.
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/providers/edit/service/?serviceId=123&providerId=123" \
-H "Authorization: Bearer $TBK_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
JSON Body
{}
Success Response Example
{
"status": "OK"
}