# invalid_filter_value

Source: https://capacms.com/docs/errors/invalid_filter_value

400 invalid_request. A filter value does not fit the field's type, for example text for a number or a non-ISO date.

| HTTP status | `type`            | Surfaces      |
| ----------- | ----------------- | ------------- |
| 400         | `invalid_request` | REST, GraphQL |

## What it means

A filter value does not fit the field's type, for example text for a number or a non-ISO date.

| When                                                                                                                                                   | What the `hint` tells you                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| a value of the wrong shape, `where` that is not a JSON object, or a part of `where` of the wrong shape, which the message names (`where.not is null.`) | the expected form: a number, `true` or `false`, an ISO 8601 date, a UUID, a comma-separated list; for `where`, a worked example of the object |

## What to do

Send numbers for number fields, true or false for true_false fields, and ISO 8601 dates.

## On GraphQL

`/api/graphql` answers the same `code` inside `errors[].extensions`. The status depends on the `Accept` header you send ([status codes](https://capacms.com/docs/api/graphql#status-codes)):

| `application/json` | `graphql-response+json` | When                                                                                                                                                                                                             |
| ------------------ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200                | 400                     | REST planner refusals, with `path` set to the root field. `invalid_select` also refuses one relation list read twice in an entry with different arguments (see [Not built yet](https://capacms.com/docs/api/graphql#not-built-yet)) |

## See also

* [Filtering](https://capacms.com/docs/api/entries#filtering)
