Admin Settings: Users
Update an admin user
Update an admin user
put/settings/users/{id}
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Example:5
Admin ID.
Request body
Response
Admin updated.
Example response
{
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"roleId": 1,
"roleName": "Administrator",
"status": 1,
"image": "admins/1/avatar.png",
"imageUrl": "https://your-domain.com/storage/admins/1/avatar.png",
"createdAt": "2026-05-25T08:15:00+00:00",
"updatedAt": "2026-05-25T08:20:00+00:00",
"message": "User deleted successfully."
}Changes
No recorded changes to this operation across all 8 revisions of this API.