Flags
PUTReplace flag targeting
Replace a flag's per-environment targeting configuration
PUT
/v1/projects/{projectId}/flags/{flagKey}/targetingReplace flag targeting
curl --request PUT \
--url 'http://localhost:4000/v1/projects/{projectId}/flags/{flagKey}/targeting' \
--header 'Authorization: Bearer <token>'200
application/json{}Replace flag targeting
Use this operation to replace a flag’s targeting configuration for one environment. The replacement sets whether the flag is enabled, the variation served on fallthrough through defaultVariationKey, and the variation served when the flag is disabled through offVariationKey.
Provide targeting rules as an ordered array. The updated response contains the flag and its per-environment configuration.
Authentication
AuthorizationbearerrequiredServer API key (srv_). See Authentication.
Path Parameters
projectIdstringrequiredProject ID
flagKeystringrequiredFlag key