Update role assignment rule
PUT
/api/admin/role-assignment-rules/{id}
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/role-assignment-rules/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "Assign viewer role to verified engineering users.", "condition": { "type": "email_domain", "domain": "example.com" }, "priority": 20, "is_active": true }'Partially updates mutable fields of a tenant-scoped role assignment rule. Omitted fields keep their current values.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
name
string
description
string | null
role_id
string
scope_type
string
scope_target
string | null
condition
object
key
additional properties
actions
Array<object>
object
key
additional properties
priority
integer
is_active
boolean
stop_processing
boolean
valid_from
integer | null format: int64
valid_until
integer | null format: int64
key
additional properties
Example
{ "description": "Assign viewer role to verified engineering users.", "condition": { "type": "email_domain", "domain": "example.com" }, "priority": 20, "is_active": true}Responses
Section titled “ Responses ”Role assignment rule response.
Media type application/json
object
id
required
string
tenant_id
required
string
name
required
string
description
string | null
role_id
required
string
scope_type
required
string
scope_target
required
string | null
condition
required
object
key
additional properties
actions
required
Array<object>
object
key
additional properties
priority
required
integer
is_active
required
boolean
stop_processing
required
boolean
valid_from
integer | null format: int64
valid_until
integer | null format: int64
created_by
string | null
created_at
required
integer format: int64
updated_at
required
integer format: int64
key
additional properties
Example
{ "id": "rar_123", "tenant_id": "tenant_123", "name": "assign_engineering_viewer", "description": "Assign viewer role to engineering users.", "role_id": "role_viewer", "scope_type": "global", "scope_target": "", "condition": { "type": "email_domain", "domain": "example.com" }, "actions": [ { "type": "assign_role", "role_id": "role_viewer" } ], "priority": 10, "is_active": true, "stop_processing": false, "created_at": 1770000000, "updated_at": 1770000000}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"}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"}