# Update a single type

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

## `PUT /single-types/:slug`

**Update a single type**

Updates the content of a single type. The slug cannot be changed.

Required permissions: `single_types.update`

### Parameters

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


### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `slug` | string | No | URL-friendly identifier, unique per site and locale. 1-100 characters |
| `name` | string | No | Display name. 1-255 characters |
| `description` | string | No | Description text |
| `data` | object | No | Resource data object |
| `schema` | object | No | Field schema definition |


### 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 PUT https://api.lynkow.com/v1/single-types/about \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "About Us",
    "bodyMarkdown": "# About Us\n\nUpdated company description."
  }'
```

### Response Example

```json
{
  "data": {
    "slug": "about",
    "name": "About Us",
    "bodyHtml": "<h1>About Us</h1><p>Updated company description.</p>",
    "locale": "en",
    "createdAt": "2025-01-10T09:00:00.000Z",
    "updatedAt": "2025-04-06T14:00:00.000Z"
  }
}
```

---