PATCH
/api/v1/segments/{id}Update a segment
Updates a segment's name or filter. Supply the attributes you want to change under data; both name and filter are optional. The response includes the updated segment.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
idstringrequired
The identifier of the segment to update.
Optional segment attributes to update, supplied under data.
dataobjectoptional
200Returns the updated segment, including its filter, identifier, name, and timestamps.
dataobjectoptional
Error handling
The id path parameter identifies the segment to update. The request schema does not require name or filter; supply either attribute under data to update it.