Saltar al contenido principal

Update Service

Update an existing service in the calendar system.

Request

PUT /v2/services/:id

Headers

NameRequiredDescription
x-api-keyYesYour API key
x-api-secretYesYour API secret

URL Parameters

ParameterTypeDescription
idstringThe ID of the service to update

Body Parameters

ParameterTypeRequiredDescription
namestringNoName of the service
descriptionstringNoDetailed description of the service
imageUrlstringNoURL of the service image
dateRangesarrayNoDate ranges when the service is available
bookingOptionsobjectNoConfiguration for booking rules
calendarsarrayNoCalendars associated with this service
extraFieldsobjectNoAdditional custom fields

Response

Success Response (200 OK)

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Updated Professional Consultation",
"description": "An updated comprehensive consultation service",
"imageUrl": "https://example.com/updated-service-image.png",
"dateRanges": [
{
"start": "2025-05-22T10:30:00Z",
"end": "2025-05-22T18:30:00Z"
}
],
"bookingOptions": {
"duration": 45,
"bufferTime": 10,
"maxParticipants": 1,
"autoAccept": true
},
"updatedAt": "2025-05-22T11:30:00Z"
}

Error Responses

StatusDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid API key or secret
403Forbidden - Insufficient permissions
404Not Found - Service does not exist
409Conflict - Service with same name already exists