Notifications

Change notification settings

Changed on

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

put/api/profile/notifications/settings

Request

  • Base URL
    https://brewpage.app
  • Auth
    API key in header X-Owner-Token

Headers

X-Owner-Token, unknown required

Owner token added to exactly one BrewPage profile

Request body

NotificationSettingsRequest required
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

Settings saved

NotificationSettingsResponse required
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)

Changes

    • info

      added the optional property level to the response with the status

    • info

      added the optional property level to the response with the status

    • info

      added the optional property level to the response with the status

    1 more change in this revision