Reference / Distribution lists
Update distribution list
PATCH/api/v1/segments/{id}
Updates the same selection definition used by the interface and sending.
Scope
segments:writeUpdate distribution lists – the person behind the key must be administrator.
Path parameters
idstringrequired- The distribution list's ID.
Body
JSON, Content-Type: application/json. Unknown fields return 422.
namestring- at least 1 characters · at most 200 characters
descriptionstring | null- at most 1000 characters
rulesoptional
Response
200 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
- 404
- not_found
- 429
- rate_limited