Assign an admin role.
curl --request POST \ --url https://auth.example.com/api/admin/admin-roles/example/assignments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "role_id": "role_ar_tenant_admin", "admin_user_id": "admin_123", "scope_type": "tenant", "scope_id": "default" }'Assigns the role to an Admin user with a normalized scope binding. Duplicate assignments, invalid scopes, hierarchy violations, and unauthorized global scope assignments are rejected.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Admin role id.
Request Body required
Section titled “Request Body required ”object
Required when assigning a role through /api/admin/admins/{id}/roles.
Required when assigning through /api/admin/admin-roles/{id}/assignments.
Example
{ "role_id": "role_ar_tenant_admin", "admin_user_id": "admin_123", "scope_type": "tenant", "scope_id": "default"}Responses
Section titled “ Responses ”Admin role assignment response.
object
Example
{ "scope_type": "global"}Headers
Section titled “Headers ”Snapshot for the remote scheduled view; eventual when Pipeline visibility can lag ingestion; local_hot_only for local scheduled staging without a remote Catalog.
Tenant deliveries not yet confirmed visible. Omitted for self-service subjects. Zero does not guarantee immediate Pipeline visibility.
True only for a complete bounded snapshot query. Pipeline responses remain false; incomplete reads return 503.
Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}