Update a user
Update a user’s email, password, user_name, or role properties.
Request Structure
Key Fields
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique user identifier, generated when the user was created.
Body
The request body for updating a user requires only the properties to be updated.
The email address for the user account.
"johndoe@gmail.com"
Passwords must be at least eight characters long and contain at least one uppercase letter, one lowercase letter, one digit, and one special character (@, $, !, %, *, ?, &).
"P@ssw0rd!"
The role assigned to a user account. A user's role will determine the level of access available for protected endpoints.
patron, expeditor, chef, manager "manager"
The user name for account login purposes. User names cannot contain spaces.
"john_doe"
Response
User updated successfully
A unique alpha-numeric string generated by the system when creating a resource (e.g., dishes, ingredients, etc). Ids are required for retrieving the properties of a specific resource.
"674d0bf5c28b69001f8e03a1"
The date and time the resource was created. Timestamp uses ISO 8601 format, Ex: 2025-04-05T14:55:03.824Z
"2024-04-22T10:00:00Z"
The date and time the resource was last updated.
Timestamp uses ISO 8601 format, Ex: 2025-04-05T14:55:03.824Z
"2024-04-22T10:00:00Z"
The user name for account login purposes. User names cannot contain spaces.
"john_doe"
The email address for the user account.
"johndoe@gmail.com"
Passwords must be at least eight characters long and contain at least one uppercase letter, one lowercase letter, one digit, and one special character (@, $, !, %, *, ?, &).
"P@ssw0rd!"
The role assigned to a user account. A user's role will determine the level of access available for protected endpoints.
patron, expeditor, chef, manager "manager"