---
title: "Change notification settings"
method: PUT
path: "/api/profile/notifications/settings"
tags: ["Notifications"]
---

# Change notification settings

`PUT /api/profile/notifications/settings`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/api/profile/notifications/settings`
- Auth: API key in header `X-Owner-Token`

Send only the keys to change; absent keys keep their value. Needs an admin token. Answers the settings.

## Headers

- `X-Owner-Token` unknown, required

## Request body

- NotificationSettingsRequest
  - `enabled` boolean, nullable: Notifications on or off; absent keeps it
  - `channel` 'site' | 'site_email', nullable: site or site_email; absent keeps it
  - `groups` object, nullable: Groups to turn on or off: pages, entries, comments; absent keeps them

## Response `200`

Settings saved

- NotificationSettingsResponse
  - `enabled` boolean, required: false: no notifications except system messages, which still show in the list; no email at all
  - `channel` 'site' | 'site_email', required: site: in the list only; site_email: in the list and by email
  - `groups` object, required: Notice groups on or off: pages (expiring, removed, full), entries (new entries) and comments (new comments)
  - `emailAddress` boolean, required: True when the profile has an email address to send to
  - `canEdit` boolean, required: True when this token may change the settings (an admin token)

## Other responses

- `400`: Unknown channel or group, or a malformed body
- `403`: PROFILE_TOKEN_REQUIRED: no token, or a token not added to exactly one profile; or the token is revoked or expired; or ADMIN_TOKEN_REQUIRED: changing settings needs an admin token
- `404`: Profiles are not available
- `429`: Rate limited: wait Retry-After (= retryAfterSeconds)

## Changes

- **2026-11-21** `19a6c5561e70`: 4 info
  - added the optional property `level` to the response with the `400` status
  - added the optional property `level` to the response with the `403` status
  - added the optional property `level` to the response with the `404` status
  - added the optional property `level` to the response with the `429` status
- **2026-11-16** `31cd78c9ccd6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/profile/notifications/settings/put.md)

---

[API](https://skmtc.dev/brewpage/apis/brewpage-api.md) - [All operations](https://skmtc.dev/brewpage/apis/brewpage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brewpage/apis/brewpage-api/revisions/78d2720a18a9?raw)
