cURL
curl --request PATCH \ --url https://services.pref.rio/rmi/v1/phone/{phone_number}/notification-preferences/categories/{category_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "channel": "<string>", "opt_in": true, "reason": "<string>" } '
{ "category_opt_ins": {}, "opt_in": true, "phone_number": "<string>", "updated_at": "<string>" }
Update opt-in preference for a single notification category for a phone number. Admin only.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Phone number
Category ID
Category preference
Preference updated successfully
Show child attributes