Edit a segment

This endpoint updates the name or specification of a segment model.

You need the "Create and update segments" permission to use this endpoint.

Path Params
uuid
required

Identifier of the segment to update. System segments cannot be updated.

Body Params

Changes to apply to a segment. At least one field must be provided. Every update creates a new version of the segment.

string | null

New name for the segment. Must be unique within the account, ignoring case. At most 100 characters. Omit to keep the current name.

specification

A node of a segment specification, written as an object with a single key naming the operator. Conditional operators (and, or) combine other operators and can be nested at most two levels deep; comparison operators compare one customer attribute against the given values. Use GET /v2/segments/attributes to find the attributes and operators supported for each segment type.

string | null

New human-readable summary of the segment's rules. At most 1000 characters. Omit to keep the current summary.

Responses

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