Segments
Update a segment
Renames a segment. Since this endpoint uses PUT semantics, name is required on the request body.
PUT
/api/v1/segments/{segment}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| segment | integer | Required | The numeric ID of the segment. |
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Required | The new label for the segment. May be up to 64 characters. Segment names are unique per project and case-insensitive. |
Response
The segment object
| Field | Type | Description |
|---|---|---|
| id | integer | The unique ID of the segment. |
| project_id | integer | The ID of the project this segment belongs to. |
| name | string | The display label of the segment. |
| created_at | datetime | When the segment was created. |
| updated_at | datetime | When the segment was last updated. |