Remove a member from an organization
/api/v1/organizations/{id}/members/{identityId}Removes the member from this organization: the membership is deactivated and every role assignment they hold at the organization's nodes goes with it, and nothing else; the identity and its memberships in other organizations are untouched. Returns 404 when the identity is not an active member and 409 when they are the last administrator. Responds 204 No Content, requires the rbac.manage_assignments permission at the organization, and emits organization.member.removed.
Authentication
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
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 identityIdstring Required Responses
Member removed
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X DELETE "https://auth.canopy-io.com/api/v1/organizations/value/members/value" \ -H "X-API-Key: $CANOPY_API_KEY"
HTTP/1.1 204 Member removed (empty body)
Tell us how we can improve this guide.