notifications

Update notification preferences

Update notification preferences for the current user. Set enabled_types to null to enable all types.

put/api/notifications/preferences

Request body

enabled_typesobject nullable

Map of notification types to enabled status. Omit types to keep them enabled. Set to null to enable all types.

Example request

{
  "enabled_types": {
    "booking": true,
    "chat": true,
    "daily_morning": false,
    "payment": false
  }
}

Response

Successful Response

titlestring nullable

Success title (set only after an update)

enabled_typesobject nullable

Map of notification types to enabled status. Null means all enabled.

Example response

{
  "enabled_types": {
    "booking": true,
    "chat": true,
    "daily_evening": true,
    "daily_morning": false,
    "event": true,
    "general": true,
    "payment": false,
    "subscription": true
  },
  "types": [
    {
      "enabled": true,
      "type": "chat"
    },
    {
      "enabled": true,
      "type": "booking"
    },
    {
      "enabled": false,
      "type": "payment"
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.