Remove an assignment
/api/v1/assignments/{id}Removes a single role assignment by id, revoking the role's permissions at its node and all inherited descendants. Authorization is re-evaluated as rbac.manage_assignments at the assignment's node; a missing assignment returns 404. Responds 204 No Content on success and emits an assignment.removed audit event carrying the affected identity, node, and role so cache-invalidating consumers can evict the right identity.
Authentication
Bearer Token
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
API Key
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required Responses
Assignment removed
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X DELETE "https://auth.canopy-io.com/api/v1/assignments/value" \ -H "X-API-Key: $CANOPY_API_KEY"
HTTP/1.1 204 Assignment removed (empty body)
Tell us how we can improve this guide.