Feature Flags
Replace the ordered targeting rules of a flag in one environment.
Changed onRules apply after the kill switch and before the environment value; the first rule whose conditions hold (and whose rollout includes the subject) decides the value. Send the environment row's updated_at as expected_updated_at so a concurrent edit is refused with 409 instead of being overwritten.
put/projects/{project_id}/flags/{key}/environments/{environment_id}/rules
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
Path parameters
project_idinteger required
Project ID
keystring required
Flag key
environment_idinteger required
Environment ID
Request body
Example request
{
"rules": [
{
"conditions": [
{
"attribute": "plan"
}
]
}
]
}Response
Rules replaced
Example response
{
"rules": [
{
"conditions": [
{
"attribute": "plan"
}
]
}
]
}Changes
- info
endpoint added
- info