# Cancel sandbox background command

```http
POST /sandboxes/{sandbox_id}/commands/{command_id}/cancel
```

Cancel a background command. Requires project.sandboxes.manage.

## Parameters

| Name         | In   | Required | Description                                                          |
| ------------ | ---- | -------- | -------------------------------------------------------------------- |
| `sandbox_id` | path | Yes      | Sandbox UUID, as returned by createSandbox.                          |
| `command_id` | path | Yes      | Background command ID, as returned by startSandboxBackgroundCommand. |

## Responses

| Status | Description         |
| ------ | ------------------- |
| 200    | Background command. |
| 400    | Bad request         |
| 402    | Payment required    |
| 403    | Forbidden           |
| 404    | Not found           |
| 502    | Bad gateway         |
| 503    | Service unavailable |
