Inventory Pre-load API

loceee
Contributor

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.

1 REPLY 1

drhoten
Contributor II

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.