# Wings Backups endpoints (Admin API)

> 14 FeatherPanel Admin API endpoints from admin/wings-backups.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/admin/wings-backups/

Defined in [`backend/app/routes/admin/wings-backups.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php). Authentication used here: **Admin**. Read [Authentication](https://featherpanel.com/docs/api/authentication/) for how to send credentials and [Rate limits and errors](https://featherpanel.com/docs/api/rate-limits-and-errors/) for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

## Endpoints

### GET `/api/admin/wings-backups/destinations`

- Auth: Admin
- Permission: `admin.wings_backups.view`
- Route name: `admin-wings-backups-destinations`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L28)

**List Wings backup destinations**

```bash
curl -X GET "$PANEL_URL/api/admin/wings-backups/destinations" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### PUT `/api/admin/wings-backups/destinations`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-destinations-create`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L29)

**Create Wings backup destination**

```bash
curl -X PUT "$PANEL_URL/api/admin/wings-backups/destinations" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### PATCH `/api/admin/wings-backups/destinations/{id}`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-destinations-update`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L30)

**Update Wings backup destination**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X PATCH "$PANEL_URL/api/admin/wings-backups/destinations/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### DELETE `/api/admin/wings-backups/destinations/{id}`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-destinations-delete`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L37)

**Delete Wings backup destination**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X DELETE "$PANEL_URL/api/admin/wings-backups/destinations/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/wings-backups/destinations/{id}/test`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-destinations-test`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L44)

**Test Wings backup destination**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X POST "$PANEL_URL/api/admin/wings-backups/destinations/$ID/test" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/wings-backups/destinations/{id}/purge`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-destinations-purge`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L51)

**Purge old objects on destination**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X POST "$PANEL_URL/api/admin/wings-backups/destinations/$ID/purge" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/wings-backups/policies`

- Auth: Admin
- Permission: `admin.wings_backups.view`
- Route name: `admin-wings-backups-policies`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L59)

**List Wings backup policies**

```bash
curl -X GET "$PANEL_URL/api/admin/wings-backups/policies" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### PUT `/api/admin/wings-backups/policies`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-policies-create`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L60)

**Create Wings backup policy**

```bash
curl -X PUT "$PANEL_URL/api/admin/wings-backups/policies" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/wings-backups/policies/{id}`

- Auth: Admin
- Permission: `admin.wings_backups.view`
- Route name: `admin-wings-backups-policies-show`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L61)

**Get Wings backup policy**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/wings-backups/policies/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### PATCH `/api/admin/wings-backups/policies/{id}`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-policies-update`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L68)

**Update Wings backup policy**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X PATCH "$PANEL_URL/api/admin/wings-backups/policies/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### DELETE `/api/admin/wings-backups/policies/{id}`

- Auth: Admin
- Permission: `admin.wings_backups.manage`
- Route name: `admin-wings-backups-policies-delete`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L75)

**Delete Wings backup policy**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X DELETE "$PANEL_URL/api/admin/wings-backups/policies/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/wings-backups/policies/{id}/run`

- Auth: Admin
- Permission: `admin.wings_backups.run`
- Route name: `admin-wings-backups-policies-run`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L82)

**Run Wings backup policy now**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X POST "$PANEL_URL/api/admin/wings-backups/policies/$ID/run" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/wings-backups/policies/{id}/runs`

- Auth: Admin
- Permission: `admin.wings_backups.view`
- Route name: `admin-wings-backups-policies-runs`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L89)

**List Wings backup policy runs**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/wings-backups/policies/$ID/runs" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/wings-backups/policies/{id}/runs/{runId}`

- Auth: Admin
- Permission: `admin.wings_backups.view`
- Route name: `admin-wings-backups-policies-run-show`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/wings-backups.php#L96)

**Show Wings backup run**

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |
| `runId` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/wings-backups/policies/$ID/runs/$RUN_ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```
