HomeGuidesAPI Reference
API Reference

Create or update an RBAC role

Creates a new RBAC role or updates an existing role with the same name. When a role is modified, all active sessions of users assigned to that role are automatically invalidated, and the RBAC API key hashmap is cleared to enforce new permissions immediately.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Map of role definitions with role name as key and role configuration as value. Must contain at least one role entry.

Response map of roles keyed by role ID (string). Always includes default roles with IDs '0' (default) and '1' (unknown). Maximum 255 entries.

Responses
204

Role created or updated successfully. Affected user sessions have been invalidated.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json