Create a user account
Create a new user account for accessing the client app.
In the request body, set the new user account email, password, user_name, and role. Available values for the role property: patron, expeditor, chef, and manager.
The user_name and password properties are required to authenticate a user and obtain an access token.
Body
The request body to create a user requires the following properties:
emailpasswordroleuser_name
The user_name must be unique.
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 successfully created
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"