# Update a sitemap entry

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

## `PUT /sitemap/entries/:id`

**Update a sitemap entry**

Updates an existing sitemap entry.

Required permissions: `sitemap.update`

### Parameters

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


### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | No | 1-2048 characters |
| `isExternal` | boolean | No | Boolean |
| `priority` | number | No | Between 0 and 1 |
| `changefreq` | "always" \| "hourly" \| "daily" \| "weekly" \| "monthly" \| "yearly" \| "never" | No | One of: always, hourly, daily, weekly, monthly, yearly, never |
| `lastModified` | string | No | Last modification datetime (ISO 8601) |
| `title` | string | No | Display title. Max 255 characters |


### Responses

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


### Response Example

```json
{
  "id": "f1a2b3c4-d5e6-7890-abcd-ef1234567890",
  "siteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "url": "/pricing",
  "isExternal": false,
  "priority": 0.9,
  "changefreq": "weekly",
  "lastModified": "2025-04-06T00:00:00.000Z",
  "title": "Pricing Page",
  "createdAt": "2025-02-10T09:00:00.000Z",
  "updatedAt": "2025-04-06T11:30:00.000Z"
}
```

---