API question

tmagdziasz
New Contributor III

I have been able to successfully get data with PHP and the API however I am now trying to POST and am having some difficulty... Anyone have any idea of how to POST a command like this

curl -k -u user:pass https://jss.company.com/JSSResource/mobiledevicecommands/command/BlankPush/id/917 -X POST

in a php format? I know how to convert the -k and -u over to php curl but the -X Post is new. I want to be able initiate a blank push from another portal site.

Thanks in Advance

1 REPLY 1

tmagdziasz
New Contributor III

I did get this figured out.. It was not my PHP it was an API user permission issue