PATCH /api/v1/projects/{project_id}/rules/{id}
Requires rules.write permission. Only the fields you include in the request body are updated; omitted fields are left unchanged.
Path parameters
UUID of the project.
UUID of the rule.
Request body
Updated evaluation order. Lower numbers are evaluated first.
Updated context attribute to evaluate. Pass
null to clear.Updated comparison operator. One of
eq, neq, in, not_in, contains, starts_with, ends_with. Pass null to clear.Updated JSON-encoded target value. Pass
null to clear.Updated rollout percentage (0–100). Pass
null to clear.Updated context field used for bucket hashing.
Updated value returned when this rule matches.
Set to
false to disable this rule without deleting it.Response
The updated rule.
Errors
| Status | When |
|---|---|
403 | Caller lacks rules.write permission |
404 | Rule not found |