> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/mutations/appointments/cancel-appointment.md).

# Cancel Appointment

Use the `cancelAppointment` mutation to cancel a scheduled user appointment.

### Arguments

|   Argument Name   |   Type   |               Description              |
| :---------------: | :------: | :------------------------------------: |
| **Argument Name** | **Type** |             **Description**            |
|   `appointment`   |    ID!   | ID of the appointment to be cancelled. |

### Available Fields

|   Field Name   |     Type    |                                            Description                                            |
| :------------: | :---------: | :-----------------------------------------------------------------------------------------------: |
| **Field Name** |   **Type**  |                                          **Description**                                          |
|  `appointment` | Appointment | A structured version of the [appointment  details](/graphql/objects/appointments/appointment.md). |
|    `message`   |   Boolean   |         **True** if the appointment  has been cancelled successfully. Otherwise, **False**        |
|    `success`   |   Boolean   |                                     Description of the result                                     |

### Example

{% tabs %}
{% tab title="Request" %}

```graphql
mutation{
  cancelAppointment(
    appointment:"QXBwb2ludG1lbnQ6MzI4MDA="
  ){
    success
    message
    appointment{
      id
      title
      start
      end
    }
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "cancelAppointment": {
      "success": true,
      "message": "Appointment canceled. The coach will be notified.",
      "appointment": {
        "id": "QXBwb2ludG1lbnQ6MzI4MDA=",
        "title": "Test",
        "start": "2025-10-09T14:30:00+00:00",
        "end": "2025-10-09T15:00:00+00:00"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}
