# Client API: Cloud Compute: Backups

> The 5 Client API operations for backups.

Source: https://www.coritan.com/docs/api/reference/client/cloud-compute/vps-backups/

Part of [Cloud Compute](/docs/api/reference/client/cloud-compute/).

## Operations

| Method | Path | Summary |
| --- | --- | --- |
| GET | [`/api/v1/client/vps/{uuid}/backups`](#op-get-api-v1-client-vps-uuid-backups) | List backups for this instance |
| POST | [`/api/v1/client/vps/{uuid}/backups`](#op-post-api-v1-client-vps-uuid-backups) | Create a new backup of this instance |
| GET | [`/api/v1/client/vps/{uuid}/backups/automatic`](#op-get-api-v1-client-vps-uuid-backups-automatic) | The instance's automatic backups, for its Backups tab |
| DELETE | [`/api/v1/client/vps/{uuid}/backups/{backup_id}`](#op-delete-api-v1-client-vps-uuid-backups-backup-id) | Delete a backup |
| POST | [`/api/v1/client/vps/{uuid}/backups/{backup_id}/restore`](#op-post-api-v1-client-vps-uuid-backups-backup-id-restore) | Restore from a backup |

### List backups for this instance {#op-get-api-v1-client-vps-uuid-backups}

`GET /api/v1/client/vps/{uuid}/backups`

List backups for this instance.

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Create a new backup of this instance {#op-post-api-v1-client-vps-uuid-backups}

`POST /api/v1/client/vps/{uuid}/backups`

Create a new backup of this instance.

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |

#### Request body

`application/json`

| Field | Type | Required |
| --- | --- | --- |
| `note` | string or null | no |
| `mode` | string | no |
| `compress` | string | no |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### The instance's automatic backups, for its Backups tab {#op-get-api-v1-client-vps-uuid-backups-automatic}

`GET /api/v1/client/vps/{uuid}/backups/automatic`

The instance's automatic backups, for its Backups tab.

``{available, frequency, keep, latest_backup_at, next_run_at, last_run_at,
last_error, automatic_backup_ids, backups, service_id}``: ``available`` is
whether its automatic backups add-on is on, ``frequency`` ``weekly`` or
``daily``, ``keep`` how many automatic backups it keeps, and ``backups``
every backup being taken or kept, newest first, each with its ``origin``
(``auto`` or ``manual``). Platform only: a brand sells its own catalogue.

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Delete a backup {#op-delete-api-v1-client-vps-uuid-backups-backup-id}

`DELETE /api/v1/client/vps/{uuid}/backups/{backup_id}`

Delete a backup.

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |
| `backup_id` | path | integer | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Restore from a backup {#op-post-api-v1-client-vps-uuid-backups-backup-id-restore}

`POST /api/v1/client/vps/{uuid}/backups/{backup_id}/restore`

Restore from a backup. This will restart the VPS.

Authentication: an access token, sent as `Authorization: Bearer <token>`.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `uuid` | path | string | yes |
| `backup_id` | path | integer | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |
