Update an admin role assignment.
PATCH
/api/admin/admin-roles/{id}/assignments/{assignmentId}
Code sample: Shell / cURL
curl --request PATCH \ --url https://auth.example.com/api/admin/admin-roles/example/assignments/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "scope_type": "tenant", "scope_id": "default", "expires_at": 1770007200000 }'Updates an assignment scope binding or expiration after validating tenant ownership, duplicate assignment conflicts, and global-scope authorization.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Admin role id.
assignmentId
required
string
Admin role assignment id.
Request Body required
Section titled “Request Body required ” Media type application/json
object
scope_type
string
scope_id
string
expires_at
integer | null format: int64
key
additional properties
Example
{ "scope_type": "tenant", "scope_id": "default", "expires_at": 1770007200000}Responses
Section titled “ Responses ”Admin role assignment response.
Media type application/json
object
id
required
string
tenant_id
required
string
admin_user_id
required
string
admin_role_id
required
string
scope_type
required
string
scope_id
required
string | null
expires_at
integer | null format: int64
assigned_by
string | null
created_at
required
integer format: int64
key
additional properties
Example
{ "scope_type": "global"}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"}