---
search:
  tags:
    - alerts
    - PUT
seo:
  description: >-
    The body is the full override: an unlisted… Reference for the PUT
    /api/v1/database-services/{id}/alert-overrides endpoint in the TimescaleDB
    Enterprise API.
  noindex: true
sidebar:
  label: Set service alert overrides
  badge: PUT
title: Set service alert overrides
type: openapi-operation
---
The body is the full override: an unlisted rule inherits. replace with no destination is refused, because the service's alerts would go nowhere. The values that result for the service must be valid. Regenerates and reloads the rule file and the routing config. A change of the routing needs the admin role; an operator on the service sends the stored routing.

`PUT /api/v1/database-services/{id}/alert-overrides`

**Request body** (`application/json`, required)

- `routing` (AlertRoutingInput, required)
- `rules` (AlertRuleOverrideInput[]) — The full set of rule overrides; an unlisted rule inherits

Request body example:

```json
{
  "routing": {
    "destinationIds": [
      0
    ],
    "mode": "inherit"
  },
  "rules": [
    {
      "enabled": true,
      "name": "string",
      "severity": "warning",
      "threshold": 0
    }
  ]
}
```

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "mutedUntil": "string",
  "routing": {
    "destinationIds": [
      0
    ],
    "mode": "inherit"
  },
  "rules": [
    {
      "effective": {
        "enabled": true,
        "severity": "string",
        "threshold": 0
      },
      "enabled": true,
      "name": "string",
      "severity": "warning",
      "threshold": 0
    }
  ],
  "serviceId": "string",
  "serviceName": "string"
}
```
