admin-users
Replace a user's manageable roles. Rejects paid/unknown roles, refuses self-demotion out of admin, and (in the DB tx) refuses to remove the last admin. On success, the target's sessions are invalidated so the change takes effect on their next request.
Changed onput/api/admin/users/{id}/roles
Request
- The document declares no server URL.
- Auth: none declared
Path parameters
idstring required
User ID
Request body
Response
Roles updated
Changes
- info
endpoint added
- info