Saltar al contenido principal

Update Service Type

This endpoint allows you to update an existing service type by providing partial or complete data.

Request Example

curl -X PUT "https://openapi.onlive.site/api/v1/service-types/{serviceTypeId}" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature" \
-d '{
"name": "Test Drive",
"slug": "test-drive",
"description": "A test drive service",
"organizationId": "org-789"
}'

Response Example

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Test Drive",
"slug": "test-drive",
"description": "A test drive service",
"organizationId": "org-789",
"createdAt": "2024-03-14T12:00:00Z",
"updatedAt": "2024-03-14T12:00:00Z"
}

Other HTTP Status Codes

  • 400 Bad Request: Invalid input data.
  • 403 Forbidden: The user is not authorized to update this calendar.
  • 404 Not Found: The calendar ID does not exist.