PATCH
/segments/{id}Update a segment
Updates the name of an existing segment. Supply name in the request body to set the segment's name.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
idstringrequired
The ID of the segment to update.
Segment update details. name is required when a request body is provided.
namestringrequired
The name of the segment.
200Returns the updated segment's ID and object type.
idstringoptional
The ID of the segment.
objectstringoptional
The object type.
Error handling
name is required when you provide a request body. The id path parameter must identify the segment to update.