curl --request PUT \
--url https://api.example.com/api/v1/users/{id} \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"role": {},
"active": true
}
'{
"200": {},
"400": {},
"404": {},
"500": {},
"id": "<string>",
"username": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"role": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"active": true
}Update an existing user’s information
curl --request PUT \
--url https://api.example.com/api/v1/users/{id} \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"role": {},
"active": true
}
'{
"200": {},
"400": {},
"404": {},
"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.
PUT /api/v1/users/{id}
0f4df2de-fffb-4a24-9891-381ecf4f0f87jdoe@jdoe.comJaneDoe IIADMIN, USER, GUESTADMINtrue0f4df2de-fffb-4a24-9891-381ecf4f0f87jdoejdoe@jdoe.comJaneDoe IIADMIN2024-01-15T10:30:002024-01-15T10:35:00truecurl -X PUT http://localhost:8080/api/v1/users/0f4df2de-fffb-4a24-9891-381ecf4f0f87 \
-H 'Content-Type: application/json' \
-d '{
"email": "jdoe@jdoe.com",
"firstName": "Jane",
"lastName": "Doe II",
"role": "ADMIN",
"active": true
}'
{
"id": "0f4df2de-fffb-4a24-9891-381ecf4f0f87",
"username": "jdoe",
"email": "jdoe@jdoe.com",
"firstName": "Jane",
"lastName": "Doe II",
"role": "ADMIN",
"createdAt": "2024-01-15T10:30:00",
"updatedAt": "2024-01-15T10:35:00",
"active": true
}
{
"type": "about:blank",
"title": "Validation Failed",
"status": 400,
"detail": "email: email must be a valid email address; firstName: first_name is required",
"timestamp": "2024-01-15T10:30:00"
}
{
"type": "about:blank",
"title": "User Not Found",
"status": 404,
"detail": "User not found with id: 0f4df2de-fffb-4a24-9891-381ecf4f0f87",
"userId": "0f4df2de-fffb-4a24-9891-381ecf4f0f87",
"timestamp": "2024-01-15T10:30:00"
}
username field is immutable and cannot be changed after user creationupdatedAt timestamp is automatically updated when changes are madeactive to false deactivates the user account without deleting it