Skip to main content

Hi,

I tried to use the API to validate and then upload a CSV file to the Inventory preload:

https://developer.jamf.com/jamf-pro/reference/post_v2-inventory-preload-csv-validate

https://developer.jamf.com/jamf-pro/reference/post_v2-inventory-preload-csv

I am able to use other API calls. Just these with the file upload I can not figure out and always get a 400 error.

Could someone share some example code on how to use those 2 API endpoints?

Thanks,

Christian

Some of the example code on those CSV reference pages is incorrect/misleading, but I believe I figured it out:
https://github.com/MatthewPrins/Jamf/blob/main/Upload_CSV_to_Preload.sh


Awesome! Thank you, Matthew! 

The API user does need CRUD access to "Users" and "Inventory Preload Records"


Reply