---
search:
  tags:
    - Notifications
    - PUT
seo:
  description: >-
    Replace notification channel preferences. Reference for the PUT
    /notifications/preferences endpoint in the Sarvex V1 API.
sidebar:
  label: Replace notification channel preferences
  badge: PUT
title: Replace notification channel preferences
type: openapi-operation
---
`PUT /notifications/preferences`

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

- `email_enabled` (boolean)
- `weekly_digest` (boolean)
- `alert_email` (string<email> | null)
- `alert_recipients` (string<email>[]) — Recipients for endpoint-health alert delivery. Additive to alert\_email, which nothing else in the codebase reads yet.
- `alert_severity_floor` (string) — Alerts below this severity are not delivered. Defaults to critical (opt in to degraded).
- `quiet_hours_start_hour` (integer | null)
- `quiet_hours_end_hour` (integer | null)
- `quiet_hours_timezone` (string) — IANA timezone name.

Request body example:

```json
{
  "email_enabled": true,
  "weekly_digest": true,
  "alert_email": "user@example.com",
  "alert_recipients": [
    "user@example.com"
  ],
  "alert_severity_floor": "degraded",
  "quiet_hours_start_hour": 0,
  "quiet_hours_end_hour": 0,
  "quiet_hours_timezone": "America/New_York"
}
```

**Responses**

- `200` — Updated preferences.

Response example, 200:

```json
{
  "email_enabled": true,
  "weekly_digest": true,
  "alert_email": "user@example.com",
  "alert_recipients": [
    "user@example.com"
  ],
  "alert_severity_floor": "degraded",
  "quiet_hours_start_hour": 0,
  "quiet_hours_end_hour": 0,
  "quiet_hours_timezone": "America/New_York"
}
```
