curl --request POST \
--url https://api.example.com/api/v1/users \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"role": {}
}
'{
"201": {},
"400": {},
"409": {},
"500": {},
"id": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"role": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"active": true
}Create a new user in the system
curl --request POST \
--url https://api.example.com/api/v1/users \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"role": {}
}
'{
"201": {},
"400": {},
"409": {},
"500": {},
"id": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"role": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"active": true
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ferneybaron/user-management-api/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/v1/users
jdoejdoe@example.comJohnDoeADMIN, USER, GUESTUSER0f4df2de-fffb-4a24-9891-381ecf4f0f87jdoejdoe@example.comJohnDoeUSER2024-01-15T10:30:002024-01-15T10:30:00truecurl -X POST http://localhost:8080/api/v1/users \
-H 'Content-Type: application/json' \
-d '{
"username": "jdoe",
"email": "jdoe@example.com",
"firstName": "John",
"lastName": "Doe",
"role": "USER"
}'
{
"id": "0f4df2de-fffb-4a24-9891-381ecf4f0f87",
"username": "jdoe",
"email": "jdoe@example.com",
"firstName": "John",
"lastName": "Doe",
"role": "USER",
"createdAt": "2024-01-15T10:30:00",
"updatedAt": "2024-01-15T10:30:00",
"active": true
}
{
"type": "about:blank",
"title": "Validation Failed",
"status": 400,
"detail": "username: username is required; email: email must be a valid email address",
"timestamp": "2024-01-15T10:30:00"
}
{
"type": "about:blank",
"title": "User Already Exists",
"status": 409,
"detail": "User with username 'jdoe' already exists",
"timestamp": "2024-01-15T10:30:00"
}