Update a segment

Renames the segment and/or replaces all its rules, and returns it. Campaigns sending to the segment use the new
rules from then on.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int64
required
Body Params

The body of PATCH /v2/segments/{id}: only the fields sent are changed; rules replaces all rules.

string | null
rules
array of objects | null
rules

One condition of a segment. Which operators and values a rule takes depends on field:
quality and status appear only in segments made in the Dashboard before; they can't be used in new rules.

string
enum
Allowed:
string
enum
required
int64 | null

The contact property, when field is property.

string
enum
required
string | null

What to compare with; not used by is_empty and is_not_empty.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json