feature-flags

Create a segment

Changed on

Create a new feature flag segment.

put/v1/projects/{projectIdOrName}/feature-flags/segments

Request

  • Base URL: https://api.vercel.com
  • URL: https://api.vercel.com/v1/projects/{projectIdOrName}/feature-flags/segments
  • Auth: HTTP bearer

Path parameters

projectIdOrNamestring required

The project id or name

Query parameters

teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Request body

slugstring required
createdBystring

The entity who created the segment

labelstring required
descriptionstring
hintstring required

Response

createdAtnumber required
createdBystring
descriptionstring
hintstring required
idstring required
labelstring required
projectIdstring required
slugstring required
typeName'segment' required
updatedAtnumber required
usedByFlagsstring[]
usedBySegmentsstring[]

Changes