Remove an identity's role assignment
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/workspace/assignments/{assignmentId}Deletes an identity's role assignment and records an assignment.removed audit event. Requires access.assign at the assignment's node. The grant ceiling does not apply, since removing access cannot escalate privilege. Returns 404 when the assignment does not exist or belongs to another Environment.
Authentication
Bearer Token
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
accountSlugstring Required The Account's slug. An unknown one answers 404.
appSlugstring Required The Application's slug within the Account.
envSlugstring Required The Environment's slug within the Application.
assignmentIdstring Required Responses
Assignment removed
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X DELETE "https://auth.canopy-io.com/portal/v1/accounts/value/applications/value/environments/value/workspace/assignments/value" \ -H "Authorization: Bearer $CANOPY_TOKEN"
HTTP/1.1 204 Assignment removed (empty body)
Tell us how we can improve this guide.