Revoke a scoped invitation
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/workspace/invitations/{invitationId}Revokes an invitation so its link can no longer be accepted, and records an invite.revoked audit event. Revoking one that is already revoked changes nothing and records nothing. Requires invitations.manage covering the invitation's node, and an invitation with no node needs Environment-wide authority. Returns 404 when the invitation is not in this Environment, and 400 when it has already been accepted.
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.
invitationIdstring Required Responses
Invitation revoked
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/invitations/value" \ -H "Authorization: Bearer $CANOPY_TOKEN"
HTTP/1.1 204 Invitation revoked (empty body)
Tell us how we can improve this guide.