# Update SEO settings

**Publié le** : 2026-05-08
**Catégorie** : SEO & Analytics

## `PUT /seo/settings`

**Update SEO settings**

Updates global SEO configuration.

Required permissions: `seo.update`

### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `robotsRules` | object[] | No | Array of objects |
| `robotsSitemapLink` | boolean | No | Boolean |
| `defaultPriority` | number | No | Between 0 and 1 |
| `defaultChangefreq` | "always" \| "hourly" \| "daily" \| "weekly" \| "monthly" \| "yearly" \| "never" | No | One of: always, hourly, daily, weekly, monthly, yearly, never |
| `includeContentsInSitemap` | boolean | No | Boolean |
| `includePagesInSitemap` | boolean | No | Boolean |
| `contentPathPrefixes` | object | No | URL path prefixes for content types |
| `contentTypePriorities` | object | No | Content type priority order in sitemap |
| `indexNowEnabled` | boolean | No | Boolean |
| `indexNowKey` | string | No | 8-64 characters |
| `googleIndexingEnabled` | boolean | No | Boolean |
| `blogUrlMode` | "flat" \| "nested" | No | One of: flat, nested |
| `blogPrefix` | string \| null | No | URL prefix for blog (e.g. "blog") |
| `llmsTxtEnabled` | boolean | No | Boolean |
| `llmsSiteDescription` | string \| null | No | Site description for LLM crawlers |
| `searchEnabled` | boolean | No | Boolean |
| `defaultAuthorName` | string \| null | No |  |
| `defaultAuthorUrl` | string \| null | No |  |
| `jsonLdGraph` | object[] | No | Max 50 characters. Array of objects |


### Responses

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


### Examples

```bash
curl -X PUT https://api.lynkow.com/v1/seo/settings \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "blogUrlMode": "nested",
    "blogPrefix": "blog",
    "indexNowEnabled": true,
    "llmsTxtEnabled": true,
    "llmsSiteDescription": "Our company blog and knowledge base."
  }'
```

### Response Example

```json
{
  "id": 1,
  "siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "robotsRules": [
    {
      "userAgent": "*",
      "rules": [
        {
          "path": "/",
          "allow": true
        },
        {
          "path": "/admin",
          "allow": false
        }
      ]
    }
  ],
  "robotsSitemapLink": true,
  "defaultPriority": 0.5,
  "defaultChangefreq": "weekly",
  "includeContentsInSitemap": true,
  "contentPathPrefixes": {},
  "contentTypePriorities": {},
  "blogUrlMode": "nested",
  "blogPrefix": "blog",
  "indexNowKey": "abc123def456",
  "indexNowEnabled": true,
  "googleIndexingEnabled": false,
  "llmsTxtEnabled": true,
  "llmsSiteDescription": "Our company blog and knowledge base.",
  "sitemapIndexEnabled": false,
  "createdAt": "2025-01-01T00:00:00.000Z",
  "updatedAt": "2025-04-06T11:00:00.000Z"
}
```

---