Reference / Distribution lists
Create distribution list
POST/api/v1/segments
Saves a shared selection definition. Does not create subscriptions.
Scope
segments:writeUpdate distribution lists – the person behind the key must be administrator.
Body
JSON, Content-Type: application/json. Unknown fields return 422.
namestringrequired- at least 1 characters · at most 200 characters
descriptionstring | null- at most 1000 characters
rulesoptionalrequired
Retrying a request
Feel free to send the Idempotency-Key header (e.g. a UUID). If the same request is sent again with the same key within 24 hours, the first response is returned, without anything being done twice. Batch and idempotency
Response
201 The distribution list.
idstringrequiredrulesobject | nullrequiredrules.matchstringrequiredallanyrules.rulesarray<optional>requirednamestringrequireddescriptionstring | nullrequiredmatchingintegerrequired- Contacts that match the conditions right now (not deleted).
activeintegerrequired- Of those: active.
created_atstring (time, ISO 8601)required- When the list was created.
updated_atstring (time, ISO 8601)required- When the conditions were last changed.
Errors
- 400
- bad_request
- 429
- rate_limited