PUT
/
client
/
user
/
{id}
curl --request PUT \
  --url https://simpleapi.com.br/api/v1/client/user/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Maria Oliveira",
  "email": "maria@email.com",
  "password": "senha456",
  "roles": [
    "viewer",
    "adm"
  ],
  "metadata": {
    "field": "abcde",
    "field1": "abcde",
    "field2": "abcde"
  }
}'
{
  "created_at": "<string>",
  "email": "<string>",
  "id": "<string>",
  "is_active": true,
  "metadata": {},
  "name": "<string>",
  "roles": [
    "<string>"
  ],
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID do usuário

Body

application/json
Dados atualizados do usuário do cliente

The body is of type object.

Response

200
application/json
Usuário do cliente atualizado

The response is of type object.