Update Service
PUT/calendars/services/catalog/:serviceId
Update service by ID.
Request
API Version
v3Service ID
- application/json
- Body
- Example (auto)
Bodyrequired
Service name
Service description
Unique URL-friendly identifier
Service event color (hex)
Service cover image URL
Service category ID
Payment details (currency configured in Service Global Settings is used.)
This controls the duration of the appointment
Duration unit
minshoursPre-Buffer is additional time that can be added before an appointment, allowing for extra time to get ready
Pre-buffer unit
minshoursPost-buffer: Additional time that can be added after an appointment, allowing for extra time to wrap up
Post-buffer unit
minshoursWhether service is private (not shown publicly)
Custom form ID (will be used to display the custom form on the booking page, if only one service is selected)
Assigned staff members
Service variations (an empty array removes all variations). Include an id to update an existing variation; omit the id to create a new one.
{
"name": "Hair Styling",
"description": "Full hair styling session",
"slug": "hair-styling",
"eventColor": "#66C61C",
"coverImage": "https://example.com/cover.jpg",
"serviceCategoryId": "65e5f6dfacf123513228d381",
"payment": {
"amount": 50,
"deposit": 20,
"depositType": "amount"
},
"serviceDuration": 60,
"serviceDurationUnit": "mins",
"preBuffer": 10,
"preBufferUnit": "mins",
"postBuffer": 15,
"postBufferUnit": "mins",
"isPrivate": false,
"formId": "65e5f6dfacf123513228d390",
"staff": [
{
"id": "65e5f6dfacf123513228d384"
}
],
"variations": [
{
"id": "65e5f6dfacf123513228d385",
"name": "Standard Haircut",
"serviceDuration": 30
}
]
}
Service updated successfully
- application/json
- Schema
- Example (auto)
Schema
Service details
{
"service": {
"id": "65e5f6dfacf123513228d384",
"locationId": "0007BWpSzSwfiuSl0tR2",
"name": "Hair Styling"
}
}