PUT
/
client
/
user
/
{id}
Atualizar um usuário do cliente existente
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"
  }
}'
{
  "id": "68194cb9de0efdd31958a456908",
  "email": "maria@email.com",
  "name": "Maria Oliveira",
  "roles": [
    "viewer",
    "adm"
  ],
  "metadata": {
    "field": "abcde",
    "field1": "abcde",
    "field2": "abcde"
  },
  "is_active": true,
  "created_at": "2025-05-05T23:41:45.619Z",
  "updated_at": "2025-05-05T23:41:45.619Z"
}

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

email
string<email>
required
Example:

"maria@email.com"

name
string
Required string length: 2 - 50
Example:

"Maria Oliveira"

password
string
Required string length: 6 - 100
Example:

"senha456"

roles
string[]
Example:
["viewer", "adm"]
metadata
object
Example:
{
"field": "abcde",
"field1": "abcde",
"field2": "abcde"
}

Response

Usuário do cliente atualizado

id
string
Example:

"68194cb9de0efdd31958a456908"

email
string
Example:

"maria@email.com"

name
string
Example:

"Maria Oliveira"

roles
string[]
Example:
["viewer", "adm"]
metadata
object
Example:
{
"field": "abcde",
"field1": "abcde",
"field2": "abcde"
}
is_active
boolean
Example:

true

created_at
string
Example:

"2025-05-05T23:41:45.619Z"

updated_at
string
Example:

"2025-05-05T23:41:45.619Z"