# Cancel appointment

> Cancel it and free the slot.

Source: https://docs.mycrmsim.com/docs/appointments/cancel-appointment

```http
POST https://backend.mysmsgateway.app/api/v1/ext/appointments/{id}/cancel
```

- Category: myCRMSIM Appointments / Calendars & Appointments
- 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. Example: `700` |
| `reason` | body | string | no | Up to 500 characters. Example: `Client asked to cancel` |

## Request body

```json
{
  "reason": "Client asked to cancel"
}
```

## Response 200

OK

```json
{
  "success": true,
  "message": "Appointment cancelled",
  "data": {
    "id": 700,
    "status": "cancelled"
  }
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): appointments.write. This integration was granted: …"
}
```

## Response 404

Appointment does not exist or is not in a workspace of the installer

```json
{
  "success": false,
  "message": "Appointment not found or not accessible to this token"
}
```
