Skip to main content
PUT
/
phone
/
{phone_number}
/
notification-preferences
Update phone notification preferences (admin only)
curl --request PUT \
  --url https://services.pref.rio/rmi/v1/phone/{phone_number}/notification-preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "category_opt_ins": {},
  "channel": "<string>",
  "opt_in": true,
  "reason": "<string>"
}'
{
  "category_opt_ins": {},
  "opt_in": true,
  "phone_number": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

phone_number
string
required

Phone number

Body

application/json

Updated preferences

channel
string
required
category_opt_ins
object
opt_in
boolean
reason
string

Response

Preferences updated successfully

category_opt_ins
object
opt_in
boolean
phone_number
string
updated_at
string