Skip to main content
Question

Where is the JSS REST API Resource Documentation

  • September 16, 2015
  • 3 replies
  • 0 views

Forum|alt.badge.img+12

I'm looking through the Release notes of JSS 9.8 and it says to refer to the API Resource Documentation. Is this only located at https://jss.local:8443/api or is there a PDF version somewhere?

3 replies

Forum|alt.badge.img+18
  • Honored Contributor
  • 486 replies
  • September 16, 2015

Not that I know of. @brysontyrrell has a great Unofficial guide. Here


mm2270
Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • September 16, 2015

Far as I know, its only the URL from your JSS. While it would be nice to have a PDF version, I imagine it would be a bit of work for JAMF to keep that up to date, or maintain different versions of it based on JSS version. Its easier to just update the api documentation built into the JSS. That way when you access it from your JSS, you can be assured you're looking at the latest documentation (for your version of the JSS anyway)


Forum|alt.badge.img+22
  • Employee
  • 207 replies
  • September 17, 2015

The API documentation is that https://jss.company.com:8443/api page.

I imagine your referring to the note about sending remote commands in there from the API.
Since I was curious about this too I was playing with this new functionality.

Syntax would be:

To Lock a device

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

or to Update Inventory

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

or to Lock multiple devices

curl -k -u user:pass https://jss.company.com/JSSResource/mobiledevicecommands/command/DeviceLock/id/1,2,3 -X POST

Similar logic for commands on computers as well:

curl -k -u user:pass https://jss.company.com/JSSResource/computercommands/commands/DeviceLock/passcode/{passcode}/id/1 -X POST

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings