Skip to main content

Update a user

Enterprise Only

This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.

Method: PUT

URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/users/{userId}

Authorization: Bearer <token>

Body:

{
"name": "John Doe",
"email": "john@example.com",
"password": null,
"password_confirmation": null,
"is_admin": true
}
KeyFormatRequiredDescription
namestringrequiredUser's full name (max 255 characters)
emailstringrequiredUser's email address (must be unique)
passwordstringoptionalNew password (leave empty to keep current)
password_confirmationstringrequired if password providedPassword confirmation
is_adminbooleanrequiredWhether the user should be a Super Admin. Cannot change your own admin status.

Response:

{
"success": true
}
{
"success": false
}