Create a new segment
Creates a new segment using the payload provided
Authentication
Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format
Request
upsertSegmentSchema
name
The name of the segment
constraints
The list of constraints that make up this segment
description
A description of what the segment is for
project
The project the segment belongs to if any.
Response headers
location
The location of the newly created resource.
Response
The resource was successfully created.
id
The ID of this segment
name
The name of this segment
constraints
The list of constraints that are used in this segment
createdAt
When the segment was created
description
The description for this segment
usedInFeatures
The number of feature flags that use this segment. The number also includes the any flags with pending change requests that would add this segment.
usedInProjects
The number of projects that use this segment. The number includes any projects with pending change requests that would add this segment.
project
The project the segment belongs to. Only present if the segment is a project-specific segment.
createdBy
The creator's email or username