Inventory API query parameters

Hi ssakunala,

I am getting below error while running the API.
{“error”:“Unable to parse time HTTP request parameter”}

Pleass post your query? That error indictates a problem in the formatting.

Hi Jason,
Here is the API I am trying to run:
https://bfiserver:port/api/sam/v2/computers?criteria={“and”:[[“is_deleted”,"=",“0”]]}

Ok, the query itself looks good…how are you sending it? A browser? Curl? Python?

You may need to URL-encode the query. Python should do that automatically, curl has a parameter for --data-urlencode, and a browser would need you to URL-encode it first.

Depending on how the API query is run, are you including the BFI API Token with the API call?

1 Like

( moved to new topic from Deleted Computers showing up on BFI Computers Report

The previous topic was “Marked as Answered” so this open question may not receive attention )