PUT/api/v1/segments/{id}

Replace segment details

Replaces the configurable details of a segment. Supply the segment data object with the name or filter values you want to set; both fields are optional.

1 parameter · 1 body field
idstringrequired
The unique identifier of the segment to replace.

Segment attributes to replace.

dataobjectoptional
The segment attributes, which can include `filter` and `name`.

1 status code
200Returns the segment object, including its identifier, name, filter, and creation and update timestamps.
dataobjectoptional

Error handling

The id path parameter must identify the segment to replace. The data object accepts filter and name fields.