Skip to content

Remove a person from an account

DELETE
/audience/management/v1/accounts/{externalId}/members/{individualId}
curl --request DELETE \
--url https://api.ebitex.io/audience/management/v1/accounts/example/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Removes the membership. The person and the account are untouched. Removing a membership that is not there answers 204 too: it is already the state you asked for.

Key: an Audience management key with audience.management.write (write also needs read; erase needs both).

externalId
required
string
individualId
required
string format: uuid

No body.

missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired, or it was not created from the Audience settings page.

payment_required: the organization’s subscription needs attention.

scope_denied: the key lacks this route’s scope. ip_denied: the caller’s address is outside the key’s allowed ranges. app_not_available: Audience is not enabled for the organization.

account_not_found: no account with that external id in this organization.

not_found: no such route.

accounts_not_enabled: the organization has not turned accounts on.

rate_limited: the key spent its requests-per-minute budget; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.