Skip to main content
PUT
/
v1
/
users
/
me
/
notifications
/
preferences
Update notification preferences
curl --request PUT \
  --url http://localhost:8080/v1/users/me/notifications/preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "preferences": [
    {
      "event_type": "<string>",
      "channels": [
        "email"
      ],
      "enabled": true,
      "config": {}
    }
  ]
}
'
{
  "data": [
    {
      "id": "unp_cq1234567890abcdef",
      "user_id": "<string>",
      "event_type": "<string>",
      "channels": [
        "email"
      ],
      "config": {},
      "enabled": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Merchant API key: ak_live_... or ak_test_...

Body

application/json
preferences
object[]
required

Response

Updated preferences

data
object[]