Skip to main content
PUT
/
citizen
/
{cpf}
/
notification-preferences
Update citizen notification preferences
curl --request PUT \
  --url https://services.pref.rio/rmi/v1/citizen/{cpf}/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": {},
  "cpf": "<string>",
  "opt_in": true,
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

cpf
string
required

CPF 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
cpf
string
opt_in
boolean
updated_at
string