PATCH
cURL
Renames a segment or changes its rules. Only the fields you send change. Campaigns using it pick up the new rules when they send.
Needs an API key with full access. Not available to a key limited to one domain.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

segmentId
string
required
Minimum string length: 1
Example:

"clx1234567890"

Body

application/json
name
string
Required string length: 1 - 100
match
enum<string>
Available options:
ALL,
ANY
rules
object[]
Maximum array length: 20

Response

The updated segment

id
string
required
contactBookId
string
required
name
string
required
match
enum<string>
required

ALL: a contact must match every rule. ANY: one rule is enough.

Available options:
ALL,
ANY
rules
object[]
required
createdAt
string
required
updatedAt
string
required
_count
object

How many campaigns use the segment (list only)