# Duplicate a content

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

## `POST /contents/:id/duplicate`

**Duplicate a content**

Creates a copy of an existing content with a new auto-generated slug
(suffixed with `-copy`). The duplicate is created in `draft` status
regardless of the original's status.

Required permissions: `contents.create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Responses

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


> **Notes:** - Category and tag associations are copied.
> 
> - Revisions are NOT copied — the duplicate starts with a clean history.

### Examples

```bash
curl -X POST https://api.lynkow.com/v1/contents/42/duplicate \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": {
    "id": 44,
    "title": "Getting Started with Lynkow",
    "slug": "getting-started-with-lynkow-copy",
    "type": "post",
    "status": "draft",
    "excerpt": "Learn how to set up your first headless CMS.",
    "locale": "en",
    "categories": [
      {
        "id": 1,
        "name": "Tutorials",
        "slug": "tutorials"
      }
    ],
    "tags": [
      {
        "id": 5,
        "name": "Getting Started",
        "slug": "getting-started"
      }
    ],
    "publishedAt": null,
    "createdAt": "2025-04-06T15:00:00.000Z",
    "updatedAt": "2025-04-06T15:00:00.000Z"
  }
}
```

---