bad_request
HTTP status: 400 Bad Request
The request was well-formed but a rule refused it. This is a different error from validation_failed, which reports specific invalid fields, malformed JSON and fields of the wrong JSON type included.
Common causes
Section titled “Common causes”- A variation key that already exists on the flag.
- A Boolean flag variation whose value isn’t
trueorfalse. Use a String, Number or Json flag for other values. - A write to an archived flag.
- A malformed pagination
cursor. - An
If-Matchheader on a write that can’t evaluate it. OnlyGETs and the conditional writes accept one, so remove it or sendIf-Match: *.
How to fix
Section titled “How to fix”- Read
message, which names the rule the request broke. - Pass pagination cursors back exactly as received.
Example
Section titled “Example”{ "error": "bad_request", "message": "Variation with key 'beta' already exists", "docs_url": "https://featureflip.io/docs/management-api/errors/bad_request"}