Posted on 10-19-2022 01:35 AM
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
Solved! Go to Solution.
Posted on 10-19-2022 09:42 AM
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
Posted on 10-19-2022 09:42 AM
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
Posted on 10-19-2022 10:05 AM
Awesome! Thank you, Matthew!
The API user does need CRUD access to "Users" and "Inventory Preload Records"