v1

latestOpenAPI 3.0.0Apache 2.02026-07-263079321.1 MB
User

Update user

Update a user by ID

  • Update a user with the provided details. Only the fields you want to update need to be provided.
  • Atualize um usuário com os detalhes fornecidos. Somente os campos que você deseja atualizar precisam ser fornecidos.
put/users/{id}

Path parameters

idinteger required

User ID

Request body

emailstring
namestring
phonestring
role'MASTER' | 'OPERATOR'
tax_numberstring

Example request

{
  "email": "john.doe@example.com",
  "name": "John Doe",
  "phone": "(11)99999-9999",
  "role": "MASTER",
  "tax_number": "123.456.789-01"
}

Response

OK

blocked_atstring
company_idinteger
created_atstring
emailstring
idinteger
languagestring
namestring
phonestring
rolestring
tax_numberstring
timezonestring
updated_atstring

Example response

{
  "blocked_at": "null",
  "company_id": 1,
  "created_at": "2024-09-06T17:37:43.464658136Z",
  "email": "john.doe@example.com",
  "id": 1,
  "language": "portuguese",
  "name": "John Doe",
  "phone": "(11)99999-9999",
  "role": "MASTER",
  "tax_number": "123.456.789-01",
  "timezone": "UTC-3",
  "updated_at": "2024-09-06T17:37:43.464658136Z"
}