# Bulk publish contents

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

## `POST /contents/bulk/publish`

**Bulk publish contents**

Publishes multiple contents at once. Provide an array of content IDs.
Contents must be in `draft` or `scheduled` status. Already published
contents are silently skipped.

Required permissions: `contents.publish`

### 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.published` webhook for each content.

### Examples

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

### Response Example

```json
{
  "published": 5
}
```

---