# Bulk archive contents

**Publié le** : 2026-05-08
**Catégorie** : Core CMS

## `POST /contents/bulk/archive`

**Bulk archive contents**

Archives multiple published contents at once. Archived contents are
hidden from the public API but preserved for future reference.

Required permissions: `contents.update`

### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | string[] | Yes | Required. 1-100 characters. Array of strings |


### Responses

| Status | Description |
| --- | --- |
| `201` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |
| `422` | Validation error |


> **Notes:** - Maximum 50 IDs per request.
> 
> - Triggers `content.archived` webhook for each content.

### Examples

```bash
curl -X POST https://api.lynkow.com/v1/contents/bulk/archive \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ids": [42, 43, 44]}'
```

### Response Example

```json
{
  "archived": 3
}
```

---