# Base filters

#### Base filters

Contains an array of objects where each object is a base filter.

| Key              | Type   | Description                                                 |
| ---------------- | ------ | ----------------------------------------------------------- |
| id               | number | A unique identifier number                                  |
| text             | string | The display name                                            |
| filters          | object | Defines filter for the base filter                          |
| services         | array  | An array of objects containing filter for services          |
| services.text    | string | The display name for the service filter                     |
| services.values  | array  | An array of strings with the service unique name in Wire OC |
| freeTexts        | string | An array of objects containing filter for free text         |
| freeTexts.text   | string | The display name for the free text filter                   |
| freeTexts.values | array  | An array of strings with free text's to filter on           |

Example:

```
[
    {
        "id": 1,
        "text": "The display name"
        "filters": {
            "services": [
                {
                    "text": "Example service filter",
                    "values": [
                        "a service to filter on",
                        "another service to filter on"
                    ]
                }
            ],
            "freeTexts": [
                {
                    "text": "Example free text filter",
                    "values": [
                        "the free text`s to filter on",
                        "another"
                    ]
                }
            ]
        }
    },
    {
        ...
    }
]
```
