# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.suggestic.com/graphql/query/mutations/appointments/cancel-appointment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
