API ReferenceAudienceContacts
Add or remove multiple contacts from a segment at once
Authorization
api-key X-API-Key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/contacts/bulk-segment" \ -H "Content-Type: application/json" \ -d '{ "contactIds": [ "42c382fb-14d8-48d9-b3ff-0b7917436af9" ], "segmentIds": [ "f82f98e5-49fc-480e-8460-d1a67b9ea1d0" ], "action": "add" }'{ "updated": 5}