Forum Discussion

mparon's avatar
mparon
Active Contributor
5 years ago

Hardware/System inventory token null?

Hi, I'm working on a script to update some of my custom field values in central and have run into an issue. When I request the hardware or system inventory report token the response is a 200 OK but all I get back is null value for the token and expiration date. 

 

Here is a copy paste of the response content:

{"expires":null,"token":null}

 

Tested with postman and got the same result.

 

Any tips appreciated.

  • Actually figured this one out. Didn't catch from the documentation that I need to POST a hardware report first, get the token number, then add that to the URL.

  • mparon's avatar
    mparon
    Active Contributor

    Actually figured this one out. Didn't catch from the documentation that I need to POST a hardware report first, get the token number, then add that to the URL.