We are trying to enroll 400 iPads with the XML template from JSS/Resource/mobiledevices/id from the API. We have created a script that reads all the data and creates the new XML record for each of the iPads. Having trouble with JSS PUT using curl. In this example "/CO-TEST-79714.xml" is what was created from the script. It contains all the same data that mobiledevices/id has, we are just inputting some of the details to enroll the iPad.
Any help with the curl command would be appreciated.
curl -X PUT -H "Accept: application/xml" -H "Content-type: application/xml" -s -k -u username:password -d "/CasperImports/CO-TEST-79714.xml" "https://yourJss.com:8443/JSSResource/mobiledevices/id/2534"