PUT
/
notifications
/
preferences
Update Notification Preferences
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/notifications/preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "preferences": [
    {
      "channel": "email",
      "enabled": true
    },
    {
      "channel": "push",
      "enabled": false
    }
  ]
}'
{
  "status": "success",
  "message": "Notification preferences updated successfully",
  "data": [
    {
      "channel": "email",
      "enabled": true
    },
    {
      "channel": "push",
      "enabled": false
    },
    {
      "channel": "in_app",
      "enabled": true
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json

Response

200
application/json

Notification preferences updated successfully

The response is of type object.