Skip to main content

Hello All,
I'd like to upload a file to the cloud distribution point(Jamf Cloud Distribution Service) with CUI(Command line User Interface).



I tried uploading a file by executing the following API.



curl -u username:password --tlsv1 --header Accept:application/zip --header Content-Type:application/zip --header FILE_TYPE: 0 --header FILE_NAME:zip_test.zip --header DESTINATION: 1 --header OBJECT_ID: 113 --data @/Users/username/Desktop/test/zip_test.zip --request POST https://mydomain/dbfileupload


And then, When I checked the package in Jamf Admin Application,
"Filename" and "Chekcsum" are displayed, but "Type" is "Missing" and the package file can not be downloaded.



Is the API parameter incorrect?



I would like some information.

Hi. This was already discussed briefly on this thread from a few weeks ago. I suggest checking there.
The short answer is, it doesn't look like it's possible to upload a package to the JCDS via the API.


Thanks! @mm2270
I would like to confirm the thread that answered.


I was able to upload a package to the cloud distribution point(Jamf Cloud Distribution Service)
by doing the following.



curl -u username:password -X POST https://mydomain/dbfileupload -H 'DESTINATION: 0' -H 'OBJECT_ID: -1' -H 'FILE_TYPE: 0' -H 'FILE_NAME: test.pkg' -T '/Users/username/test.pkg'