Grant or revoke system admin
PATCH/api/admin/users/:userId/system-admin
Self-hosted / Enterprise only Sets installation-wide system admin (users.is_admin) for a user. Requires an authenticated system admin. The last system admin cannot demote themselves. On TokenTimer Cloud this route does not exist; TokenTimer operates the instance.
Request
Responses
- 200
- 400
- 403
- 404
- 500
System admin flag updated
Bad request
Forbidden
Not found
Internal server error