Skip to main content
PUT
/
citizen
/
{cpf}
/
avatar
Atualizar avatar do usuário
curl --request PUT \
  --url https://services.pref.rio/rmi/v1/citizen/{cpf}/avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "avatar_id": "<string>"
}'
{
  "avatar": {
    "created_at": "<string>",
    "id": "<string>",
    "is_active": true,
    "name": "<string>",
    "url": "<string>"
  },
  "avatar_id": "<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 do usuário

Body

application/json

Seleção de avatar

avatar_id
string

Response

Avatar do usuário atualizado com sucesso

avatar
object
avatar_id
string