Update an admin role.
PATCH
/api/admin/admin-roles/{id}
Code sample: Shell / cURL
curl --request PATCH \ --url https://auth.example.com/api/admin/admin-roles/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "display_name": "Security Reviewer", "permissions": [ "admin:admin_roles:read", "admin:admin_audit:read" ] }'Updates mutable fields on a custom tenant Admin role. System roles and roles outside the tenant are rejected; callers can only grant permissions and hierarchy levels allowed by their own role.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Admin role id.
Request Body required
Section titled “Request Body required ” Media type application/json
object
display_name
string
description
string
permissions
Array<string>
hierarchy_level
integer
inherits_from
string | null
key
additional properties
Example
{ "display_name": "Security Reviewer", "permissions": [ "admin:admin_roles:read", "admin:admin_audit:read" ]}Responses
Section titled “ Responses ”Admin role response.
Media type application/json
object
id
required
string
tenant_id
required
string
name
required
string
display_name
string | null
description
string | null
permissions
required
Array<string>
hierarchy_level
required
integer
is_system
required
boolean
role_type
required
string
inherits_from
string | null
created_at
required
integer format: int64
updated_at
required
integer format: int64
key
additional properties
Example
{ "role_type": "system"}Headers
Section titled “Headers ” X-Authrim-Log-Consistency
string
Snapshot for the remote scheduled view; eventual when Pipeline visibility can lag ingestion; local_hot_only for local scheduled staging without a remote Catalog.
X-Authrim-Log-Pending-Deliveries
integer
Tenant deliveries not yet confirmed visible. Omitted for self-service subjects. Zero does not guarantee immediate Pipeline visibility.
X-Authrim-Log-Complete
boolean
True only for a complete bounded snapshot query. Pipeline responses remain false; incomplete reads return 503.
Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}