Skip to main content

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

NameLocationRequiredTypeDescription
serviceIdqueryYesstringTheBooking service identifier.
providerIdqueryYesinteger or stringTheBooking provider identifier.

Request Body

Content type: application/json

Required: Yes

Schema: object

No documented properties.

Responses

StatusMeaningDescriptionBody
200SuccessOperation completedOkEnvelope
400Invalid requestInvalid request or application rule failureErrorEnvelope
401Authentication requiredMissing or invalid API tokenWpRestError
403ForbiddenToken lacks write scope or the operation is forbiddenWpRestError or ErrorEnvelope
404Not foundResource not foundErrorEnvelope

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"
}