cURL
curl --request PATCH \ --url https://services.pref.rio/rmi/v1/citizen/{cpf}/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": {}, "cpf": "<string>", "opt_in": true, "updated_at": "<string>" }
Update opt-in preference for a single notification category
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
CPF number
Category ID
Category preference
Preference updated successfully
Show child attributes