Remove contacts from a segment
Take contacts that were added by hand out of a segment.
On this page
POST
https://app.usenotix.dev/api/v1/contactBooks/{contactBookId}/segments/{segmentId}/members/removeNeeds a full access key. Sending access keys cannot call this. Key permissions lists the extra rules some calls have.
Take contacts that were added by hand out of a segment. A contact the segment's rules match stays in it. Needs a full access key.
Path parameters
contactBookIdstringrequired
segmentIdstringrequired
Body parameters
contactIdsstring[]required
Ids of contacts in the segment's contact book, 1 to 1000.
Headers
Authorizationstringrequired
Bearer followed by your API key.
Errors
404
No segment with this id in the contact book for the calling team.
Every error has the same shape. See all error codes.
curl -X POST "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/segments/<segmentId>/members/remove" \
-H "Authorization: Bearer $NOTIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contactIds": [
"cnt_123"
]
}'
Response200
{
"segmentId": "cm1x8f3k20001qz7v5b9d2e4a",
"removed": 1
}