# Restore a block revision

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

## `POST /site-blocks/:slug/revisions/:revisionId/restore`

**Restore a block revision**

Restores a site block to a previous revision state.

Required permissions: `site_blocks.update`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | URL-friendly identifier, unique per site and locale |
| `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/site-blocks/header/revisions/200/restore \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": {
    "id": 1,
    "name": "Header",
    "slug": "header",
    "type": "global",
    "status": "published",
    "locale": "en",
    "data": {
      "logo": {
        "url": "https://cdn.lynkow.com/sites/abc123/logo.svg",
        "alt": "Company Logo"
      },
      "navLinks": [
        {
          "label": "Home",
          "url": "/"
        },
        {
          "label": "Blog",
          "url": "/blog"
        },
        {
          "label": "Contact",
          "url": "/contact"
        }
      ]
    },
    "createdAt": "2025-01-05T09:00:00.000Z",
    "updatedAt": "2025-04-06T16:00:00.000Z"
  }
}
```

---