PUT
/
users
/
{id}
{
  "id": "674d0bf5c28b69001f8e03a1",
  "created_at": "2024-04-22T10:00:00Z",
  "updated_at": "2024-04-22T10:00:00Z",
  "user_name": "john_doe",
  "email": "johndoe@gmail.com",
  "password": "P@ssw0rd!",
  "role": "manager"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The unique user identifier, generated when the user was created.

Body

application/json

The request body for updating user requires only the properties to be updated.

The body is of type object.

Response

200
application/json

User updated successfully

The response is of type object.