curl -X PATCH "https://panel.example.com/api/admin/users/user-uuid" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"email": "newemail@example.com"
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"username": "john.doe",
"email": "newemail@example.com",
"name": "John Doe",
"role": "admin",
"createdAt": "2024-01-15T10:30:00Z"
}
}
Update user account information and settings
curl -X PATCH "https://panel.example.com/api/admin/users/user-uuid" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"email": "newemail@example.com"
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"username": "john.doe",
"email": "newemail@example.com",
"name": "John Doe",
"role": "admin",
"createdAt": "2024-01-15T10:30:00Z"
}
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xyrapanel/panel/llms.txt
Use this file to discover all available pages before exploring further.
users:write permission.
admin or usercurl -X PATCH "https://panel.example.com/api/admin/users/user-uuid" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"email": "newemail@example.com"
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"username": "john.doe",
"email": "newemail@example.com",
"name": "John Doe",
"role": "admin",
"createdAt": "2024-01-15T10:30:00Z"
}
}
null when email is changedpasswordResetRequired flag is automatically set to falsename is provided without nameFirst/nameLast, it’s automatically splitnameFirst, remaining words become nameLastnameFirst and nameLast directly for more controlrole and rootAdmin fields are updated in the databaseupdatedAt timestamp