# Restore a content revision

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

## `POST /contents/:id/revisions/:revisionId/restore`

**Restore a content revision**

Restores a content to a previous revision. The current state is saved
as a new revision before restoring, so no data is lost.

Required permissions: `contents.update`

### Parameters

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


### Responses

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


### Examples

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

### Response Example

```json
{
  "data": {
    "id": 42,
    "title": "Getting Started with Lynkow",
    "slug": "getting-started-with-lynkow",
    "type": "post",
    "status": "published",
    "excerpt": "Learn how to set up your first headless CMS.",
    "bodyHtml": "<h1>Welcome</h1><p>Original content restored.</p>",
    "locale": "en",
    "createdAt": "2025-03-14T08:00:00.000Z",
    "updatedAt": "2025-04-06T15:00:00.000Z"
  }
}
```

---