# Update Sentinel settings

Source: https://next.coolify.io/docs/api/endpoints/servers/update-server-sentinel

## PATCH /servers/{uuid}/sentinel

Update Sentinel settings

Update Sentinel settings for a server owned by the authenticated team. Changing token/metrics timing fields may restart Sentinel. Needs a token with the write and deploy permissions.

**Authentication:** Bearer token (`bearerAuth`)

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| uuid | path | yes | string | Server UUID |

### Request body

`application/json`, required.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| is_metrics_enabled | boolean | no |  |
| is_sentinel_debug_enabled | boolean | no |  |
| sentinel_token | string | no |  |
| sentinel_metrics_refresh_rate_seconds | integer | no |  |
| sentinel_metrics_history_days | integer | no |  |
| sentinel_push_interval_seconds | integer | no |  |
| sentinel_custom_url | string or null | no |  |
| traffic_topn | integer | no |  |
| traffic_sample_threshold | integer | no |  |
| traffic_retention_1h_days | integer | no |  |
| traffic_retention_1d_days | integer | no |  |
| is_geoip_enabled | boolean | no |  |
| geoip_refresh_days | integer | no |  |
| geoip_maxmind_license_key | string or null | no |  |
| traffic_ip_mode | string enum "full", "anonymized", "off" | no | How Sentinel stores client IPs: full, anonymized (IPv4 /24, IPv6 /48), or off. |

### Responses

#### 200

Updated Sentinel settings.

#### 400

Invalid token.

`application/json`: object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | no |  |

#### 401

Unauthenticated.

`application/json`: object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | no |  |

#### 403

The token needs the write and deploy permissions.

#### 404

Resource not found.

`application/json`: object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | no |  |

#### 422

Validation error.

`application/json`: object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | no |  |
| errors | object | no |  |
