I tried to create a search saved object with kibana API. I could able to create the object with selected columns and sort, but I am unable to add filters to the search.
Below is the body of POST call I used.
{
"attributes": {
"title": "object 1",
"columns": [
"Carrier",
"Cancelled"
],
"sort": "@timestamp"
}
}
I am not sure on adding filters to the search. Can someone please help me here.