Update filter
Update an existing filter if it is owned by the current user.
PUT
/data/user/filters/{filter_id}
curl \
--request PUT 'http://api.example.com/data/user/filters/a24a6ea4-ce75-4665-a070-57453082c25' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"Updated Filter Name","search_query":"{\"status\": \"active\"}","search_filter_group_id":"b35b7fb5-df86-5776-b181-68564193d36","is_shared":true,"project_id":"c46c8gc6-eg97-6887-c292-79675204e47","department_id":"d57d9hd7-fh08-7998-d403-80786315f58"}'
Request examples
{
"name": "Updated Filter Name",
"search_query": "{\"status\": \"active\"}",
"search_filter_group_id": "b35b7fb5-df86-5776-b181-68564193d36",
"is_shared": true,
"project_id": "c46c8gc6-eg97-6887-c292-79675204e47",
"department_id": "d57d9hd7-fh08-7998-d403-80786315f58"
}
Response examples (200)
{
"id": "e68e0ie8-gi19-8009-e514-91897426g69",
"name": "Updated Filter Name",
"query": "{\"status\": \"active\"}",
"list_type": "todo",
"entity_type": "Asset",
"project_id": "f79f1jf9-hj20-9010-f625-a09008537h80",
"is_shared": true,
"created_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-01T12:30:00Z"
}