Register User
Endpoints
Register User
Create a new user in the system
POST
Register User
Endpoint
Request Body
Unique username for the user. Must be between 3 and 50 characters.Validation:
- Required
- Min length: 3 characters
- Max length: 50 characters
jdoeUser’s email address. Must be a valid email format.Validation:
- Required
- Must be a valid email address
jdoe@example.comUser’s first name.Validation:
- Required
- Max length: 100 characters
JohnUser’s last name.Validation:
- Required
- Max length: 100 characters
DoeUser’s role in the system.Validation:
- Required
- Must be one of:
ADMIN,USER,GUEST
USERResponse
Unique identifier for the user, automatically generated.Example:
0f4df2de-fffb-4a24-9891-381ecf4f0f87The user’s username.Example:
jdoeThe user’s email address.Example:
jdoe@example.comThe user’s first name.Example:
JohnThe user’s last name.Example:
DoeThe user’s role.Example:
USERISO 8601 timestamp when the user was created.Example:
2024-01-15T10:30:00ISO 8601 timestamp when the user was last updated.Example:
2024-01-15T10:30:00Whether the user account is active. New users are active by default.Example:
trueStatus Codes
User created successfully
Validation error - one or more required fields are missing or invalid
User with the provided username already exists
An unexpected error occurred