Flags
PATCHUpdate a flag
Update flag metadata or variations
/v1/projects/{projectId}/flags/{flagKey}curl --request PATCH \
--url 'http://localhost:4000/v1/projects/{projectId}/flags/{flagKey}' \
--header 'Authorization: Bearer <token>'{}Update a flag
Use this endpoint to update an existing flag’s name, description, or variations within a project. The name and description fields are optional, and a supplied name must contain 1–120 characters while the description may contain up to 500 characters. If you supply variations, the collection must contain at least one variation, and each variation must have a unique key. The endpoint returns the updated flag, including its per-environment configurations.
Targeting is updated separately from flag metadata and variations. To change a flag’s enabled state, default or off variation, or targeting rules for an environment, use Replace flag targeting instead.
Authentication
AuthorizationbearerrequiredServer API key (srv_). See Authentication.
Path Parameters
projectIdstringrequiredProject ID
flagKeystringrequiredFlag key