# Copy block to another locale

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

## `POST /site-blocks/:slug/copy-to-locale`

**Copy block to another locale**

Creates a translated copy with the same schema and data.

Required permissions: `site_blocks.create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | URL-friendly identifier, unique per site and locale |


### 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/copy-to-locale \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"locale": "fr"}'
```

### Response Example

```json
{
  "data": {
    "id": 10,
    "name": "Header",
    "slug": "header",
    "type": "global",
    "status": "draft",
    "locale": "fr",
    "schema": [
      {
        "name": "logo",
        "type": "image",
        "label": "Logo"
      },
      {
        "name": "navLinks",
        "type": "array",
        "label": "Navigation Links"
      }
    ],
    "data": {
      "logo": {
        "url": "https://cdn.lynkow.com/sites/abc123/logo.svg",
        "alt": "Company Logo"
      },
      "navLinks": [
        {
          "label": "Home",
          "url": "/"
        },
        {
          "label": "Blog",
          "url": "/blog"
        }
      ]
    },
    "createdAt": "2025-04-06T15:00:00.000Z",
    "updatedAt": "2025-04-06T15:00:00.000Z"
  }
}
```

---