Cancel appointment
POST
/api/v1/ext/appointments/{id}/cancel
Cancel it and free the slot.
Auth: Bearer access_token
Scope: appointments.write
Runs workflows on Appointment cancelled and removes it from a linked Google or Outlook calendar. A cancellation is final: book again instead.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Appointment id. |
| reason | body | string | no | Up to 500 characters. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | Appointment does not exist or is not in a workspace of the installer |
RequestResponses
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/appointments/{id}/cancel" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"reason": "Client asked to cancel"
}'OK
{
"success": true,
"message": "Appointment cancelled",
"data": {
"id": 700,
"status": "cancelled"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Appointment id.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/appointments/%7Bid%7D/cancel
Previous
« Update / reschedule appointment
Next
Mark no-show »
