We are trying to access JIRA Insight IQL API. The iql query "objectTypeId = 316 AND objectId = 564" yields exactly one result in UI.
However with the following API, using this same query gives a json dump of pg1 of all objects:
curl -u "<user>:<token>" --request GET --url 'https://api.atlassian.com/jsm/insight/workspace/<workspace-id>/v1/iql/objects' --data '{"iql":"objectTypeId = 316 AND objectId = 564"}' --header 'Accept: application/json'
What is correct syntax for making the API call?