Fixlets in Console Not Displaying In API

I’m walking through the “Create a Resource Using POST” in the Developer site BigFix API website( https://developer.bigfix.com/rest-api/gettingstarted.html). I get a: “Requested Resource Does Not Exist” error.

After some further investigation, by doing a GET of https://[bigfix server]:[bigfix port]/api/fixlets/external/BES Support/ it appears as if the CPU Usage fixlet (Fixlet ID 168) is missing. Furthermore I get the “Requested Resource Does Not Exist” error when I try a GET of https://[bigfix server]:[bigfix port]/api/fixlets/external/BES Support/168.

I’ve validated that the account I’m using to access the REST API is a MO, and I’ve also validated that the fixlet exists in the console (using the same account). Analyzing the api/fixlets/external/BES Support/ XML it looks like only 1107 fixlets return when in the console it displays 1354. Anyone have any guidance on why there’s a discrepancy?

Are you looking for a task instead of a fixlet? The REST API does have two separate endpoints for the two different types of content:

https://developer.bigfix.com/rest-api/api/task.html

So it does turn up in the tasks @jeremylam. Thanks for specifying the difference. However, I still have the same issue when I run a POST of the /api/action

with the same Body as in the tutorial ( https://developer.bigfix.com/rest-api/gettingstarted.html), with the exception of updating {id} for a computer ID I found in the console.

I even tried changing it to all computers, but got the same ‘requested resourcer does not exist’ error (see e-attached pic for body

)

Closing the loop on this - the URL that the documentation recommends is incorrect.

Website Shows:

https://<bigfix_server>:52311/api/action

SHOULD Be:
https://<bigfix_server>:52311/api/actions (note the S at the end)

Not sure who manages the developer.bigfix.com site, @Aram but would be useful if that could be updated

1 Like

Will update the REST API’s gettingstarted page based on the feedback. Thanks!