Create filter
Create a new filter for the current user limited to open projects only.
POST
/data/user/filters
curl \
--request POST 'http://api.example.com/data/user/filters' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"My Custom Filter","query":"{\"project_id\": \"uuid\"}","list_type":"todo","entity_type":"Asset","project_id":"a24a6ea4-ce75-4665-a070-57453082c25","is_shared":false,"search_filter_group_id":"b35b7fb5-df86-5776-b181-68564193d36","department_id":"c46c8gc6-eg97-6887-c292-79675204e47"}'
Request examples
{
"name": "My Custom Filter",
"query": "{\"project_id\": \"uuid\"}",
"list_type": "todo",
"entity_type": "Asset",
"project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"is_shared": false,
"search_filter_group_id": "b35b7fb5-df86-5776-b181-68564193d36",
"department_id": "c46c8gc6-eg97-6887-c292-79675204e47"
}
Response examples (201)
{
"id": "d57d9hd7-fh08-7998-d403-80786315f58",
"name": "My Custom Filter",
"query": "{\"project_id\": \"uuid\"}",
"list_type": "todo",
"entity_type": "Asset",
"project_id": "e68e0ie8-gi19-8009-e514-91897426g69",
"is_shared": false,
"created_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-01T12:30:00Z"
}