Edit in GitHubLog an issue

Validate filters

Data views have different dimensions and metrics available. A filter that's valid in one data view might not be valid in another. You can use the filters/validate endpoint to check and see if a given filter is valid.

POST https://cja.adobe.io/filters/validate

An example POST body:

Copied to your clipboard
1{
2 "dataId": "{DATAID}",
3 "compatibility": null,
4 "definition": {
5 "container": {
6 "func": "container",
7 "pred": {
8 "evt": {
9 "func": "event",
10 "name": "metrics/visits"
11 },
12 "func": "event-exists",
13 "description": "purchase id"
14 },
15 "context": "hits"
16 },
17 "func": "segment",
18 "version": [
19 1,
20 0,
21 0
22 ]
23 },
24 "name": "Integration Test Seg 1",
25 "description": "For Integration Test Only"
26}

An example response:

Copied to your clipboard
1{
2 "valid": true,
3 "validator_version": "1.1.11",
4 "supported_products": [
5 "data_warehouse",
6 "oberon",
7 "discover"
8 ],
9 "supported_schema": [
10 "schema_data_warehouse",
11 "schema_oberon"
12 ],
13 "supported_features": [
14 "function_attr",
15 "function_container",
16 "function_streq"
17 ]
18}
Copyright © 2021 Adobe. All rights reserved.