Get All Users
Retrieve a list of all users in the system.GET
Endpoint: /auth/users
Response
Indicates if the request was successful
Array of user objects
Create User
Register a new user in the system.POST
Endpoint: /auth/register
Request Body
User’s email address
User’s password (minimum 8 characters)
User’s first name
User’s last name
User role (e.g., “admin”, “user”)
Response
Indicates if the user was created successfully
Created user object
Success message
Update User Status
Update the active status of a user.PUT
Endpoint: /auth/users/{userId}/status
Path Parameters
Unique identifier of the user
Request Body
New active status for the user
Response
Indicates if the status was updated successfully
Updated user object
Update User Role
Update the role of a user.PUT
Endpoint: /auth/users/{userId}/role
Path Parameters
Unique identifier of the user
Request Body
New role for the user (e.g., “admin”, “user”)
Response
Indicates if the role was updated successfully
Updated user object
Update User Profile
Update user profile information.PUT
Endpoint: /auth/users/{userId}/profile
Path Parameters
Unique identifier of the user
Request Body
Updated first name
Updated last name
Updated email address
Response
Indicates if the profile was updated successfully
Updated user object