PATCH
/api/public/v1/appointment-services/{serviceId}

Update appointment service

Update one or more fields on a service.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Dev Tools → API, to an assistant or CLI sign-in when you approve or edit it under Dev Tools, and to a teammate under Employee → Permissions.

appointments:write

Path Parameters

NameTypeRequiredDescription
serviceIdstringRequiredService ID.

Request Body

PropertyTypeDescription
namestringService name.
descriptionstringDescription.
durationnumberDuration in minutes.
pricenumberPrice in cents.
isActivebooleanWhether bookable.
PATCHExample request
curl
curl -X PATCH "https://www.pxb.app/api/public/v1/appointment-services/{serviceId}" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "price": 6000,
    "isActive": false
  }'
200Example response
json
{
  "message": "Appointment service updated successfully!",
  "content": {
    "service": {
      "id": "svc_1"
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Scheduling → Services
/scheduling/services
  1. Open a service and edit it.