Skip to main content
PUT
/
v1
/
profile
/
notifications
Update notification settings
curl --request PUT \
  --url https://api.example.com/v1/profile/notifications \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email_notifications": true,
  "push_notifications": true,
  "categories": {
    "security": true,
    "marketing": true,
    "updates": true
  }
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email_notifications
boolean

Enable email notifications

push_notifications
boolean

Enable push notifications

categories
object

Response

200

Notification settings updated successfully