cURL
curl --request PUT \ --url https://services.pref.rio/rmi/v1/citizen/{cpf}/notification-preferences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "channel": "<string>", "category_opt_ins": {}, "opt_in": true, "reason": "<string>" } '
{ "category_opt_ins": {}, "cpf": "<string>", "opt_in": true, "updated_at": "<string>" }
Update notification preferences for a citizen (global and/or category opt-ins)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
CPF number
Updated preferences
Show child attributes
Preferences updated successfully