Skip to main content
DELETE
/
api
/
v1
/
accounts
/
{accountId}
/
roles
/
{roleId}
/
assignments
/
{assigneeId}
Revoke role assignment from a user
curl --request DELETE \
  --url https://api.aion.xyz/api/v1/accounts/{accountId}/roles/{roleId}/assignments/{assigneeId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Assignment deleted successfully"
}

Documentation Index

Fetch the complete documentation index at: https://docs.aion.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Path Parameters

accountId
string
required

The account identifier (external account ID)

Example:

"my-company-account"

roleId
string
required

The role identifier to revoke

Example:

"project_reader"

assigneeId
string
required

The assignee identifier (external user ID)

Example:

"john.doe"

Query Parameters

assigneeType
enum<string>
default:USER

The type of assignee

Available options:
USER,
IAMGROUP
projectId
string

Project identifier for project-scoped role assignments

Example:

"project-alpha"

Response

Role assignment successfully revoked

success
boolean
Example:

true

message
string
Example:

"Assignment deleted successfully"