Posted on 03-30-2020 06:14 PM
Has anyone had any success with the Inventory Pre-load API? I can get data into it, and it appears correctly, both in the GUI and when reading it back from the API.
When I perform an enrolment though the data isn't picked up.
Uploading identical data via a CSV in the GUI works as expected, and the device picks it up during enrolment.
I am using Ansible to post a JSON payload with the mandatory inventory filled.
Would love to know if anyone is using this API successfully.
Posted on 04-03-2020 01:41 PM
Hello @loceee
A couple of questions for you.
Are you using the API to post individual records using JSON? If yes, have you also tried posting the CSV file to the endpoint
/v1/inventory-preload
after first validating it with
/v1/inventory-preload/validate-csv
What specific fields are not being updated when you post the JSON, is it any of the user-related fields? Checking with some folks on the team, they mentioned the user fields are updated when a CSV file is uploaded vs. individual records being POSTed to the API.