I am trying to do a basic search for assets with the API using postman and keep getting error 406. I know I am missing something in the headers but not sure what. Can anyone help?
I’ve tried with Accept: Application/JSON
as well and doesn’t work.
what does the body of your POST look like?
Here is an example
{
"match": "all",
"filters": [
{
"field": "operating-system",
"operator": "contains",
"value": "windows"
},
{
"field": "service-name",
"operator": "contains",
"value": "httpd"
}
]
}
I was just using the example to start:
{
"match": "all",
"filters": [
{ "field": "operating-system", "operator": "contains", "value": "Microsoft Windows 10" }
]
}
I tried yours above and still get the 406 error.
Interesting. Turns out I had a pending update for Postman and now I am Version 8.9.1 on Mac and it’s working…