Remove a contact from an audience
DELETE
/v1/audiences/{audience_id}/contacts/{contact_id}
await bird.audiences.removeContact(
"adn_01krdgeqcxet5s7t44vh8rt9mg",
"con_01krdgeqcxet5s7t44vh8rt9mg",
);client.audiences.remove_contact(
"adn_01krdgeqcxet5s7t44vh8rt9mg", "con_01krdgeqcxet5s7t44vh8rt9mg",
)if err := client.Audiences.RemoveContact(context.Background(), "adn_123", "con_1"); err != nil {
log.Fatal(err)
}$bird->audiences->removeContact(
'adn_01krdgeqcxet5s7t44vh8rt9mg',
'con_01krdgeqcxet5s7t44vh8rt9mg',
);bird audiences remove-contact <audience-id> <contact-id> --yescurl -X DELETE "https://us1.platform.bird.com/v1/audiences/{audience_id}/contacts/{contact_id}" \
-H "Authorization: Bearer $TOKEN"Removes a contact's membership in an audience. The contact itself is not deleted and remains a member of any other audiences. Removing a contact that is not a member of the audience succeeds with no effect (204); an unknown audience or contact returns a not-found error.
Paramètres
audience_id
string
ID of the audience to remove the contact from (adn_-prefixed).
contact_id
string
ID of the contact to remove (con_-prefixed).