v14
latestOpenAPI 3.0.32026-08-04377889.4 MBfeature-flags
Update a flag
Update an existing feature flag. This endpoint supports partial updates, allowing you to modify specific properties like variants, environments, or state without providing the full flag configuration.
patch/v1/projects/{projectIdOrName}/feature-flags/flags/{flagIdOrSlug}
Path parameters
projectIdOrNamestring required
The project id or name
The project id or name
flagIdOrSlugstring required
The flag id or name
The flag id or name
Query parameters
ifMatchstring
Etag to match, can be used interchangeably with the if-match header
Etag to match, can be used interchangeably with the if-match header
withMetadataboolean
Whether to include metadata in the response
Whether to include metadata in the response
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.