Users

Update user by ID

put/users/{id}

Path parameters

idstring required

MongoDB ObjectId represented as a hexadecimal string

Object ID

Request body

_idstring

MongoDB ObjectId represented as a hexadecimal string

usernamestring
passwordstring
emailstring email
rolestring
role_idstring

MongoDB ObjectId represented as a hexadecimal string

root_admin_roleboolean
created_atstring date-time
updated_atstring date-time
created_bystring

MongoDB ObjectId represented as a hexadecimal string

updated_bystring

MongoDB ObjectId represented as a hexadecimal string

Response

User updated successfully

codeinteger
messagestring
dataobject

Changes