# Cancel

## Cancel

<mark style="color:green;">`POST`</mark> `https://api.suble.io/projects/:projectId/vm/:vmId/cancel`

Schedule or unschedule cancellation of a virtual machine

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | User token or project key |

#### Request Body

| Name   | Type    | Description                                          |
| ------ | ------- | ---------------------------------------------------- |
| cancel | boolean | true = cancel, false = remove scheduled cancellation |

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

```
{
    "status": "success"
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "error": String
}
```

{% endtab %}
{% endtabs %}
