users

put/users/{id}

Path parameters

idinteger required

id of the user

Request body

namestring
emailstring
password_hashstring
roleinteger
created_atstring date-time
last_loginstring date-time

Example request

{
  "name": "Alice Smith",
  "email": "alice.smith@example.com",
  "password_hash": "$2b$10$c7Mtd3kRpMjr6VexlxuAleT8Sy3SwPcT.YLCazH5QWBgnATDo5N6O",
  "role": 1,
  "created_at": "2024-01-01T00:00:00.000Z",
  "last_login": "2024-10-01T00:00:00.000Z"
}

Response

user

messagestring
dataUser — unresolved $ref

Changes