How to find %Complete value of an action via API

I am trying to find the “% Complete” value of an action using API.
In the Bigfix console, in Action pane, each action shows “% Complete” value as “x.xx% (x/y)”.
How can I retrieve this info using API query?

I tried following API but it gives me list of statuses and does not show this above value.

https://<server_name>:52311/api/query?relevance=detailed statuses of results of (bes action whose (id of it is 1234))

Result:



The action executed successfully.
The action failed.
The action executed successfully.


0.330ms
Plural


Thanks.

The API won’t give you the percentages, you need to retrieve all of the statuses, and then do the math to build percentages as part of your scripting logic.