Segments

Create a segment

Creates a new segment in the active project. Segment names are unique per project and case-insensitive.

POST /api/v1/segments

Body parameters

Name Type Required Description
name string Required

A label for the segment. May be up to 64 characters. Segment names are unique per project and case-insensitive, so Direct Competitors and direct competitors will collide.

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.