Skip to main content
Question

GET MDM commands via API returning 400 and 401

  • October 18, 2024
  • 1 reply
  • 23 views

Forum|alt.badge.img+13

I'm following this page and trying to get the MDM commands, but when I use a JSS account on myaccount.jamfcloud.com/api/doc/#/mdm/get_v2_mdm_commands I get a 400 returned, and when I use an API account I get a 401 returned.

The full URL for CURL/Postman is:

https://{myaccount}.jamfcloud.com/api/v2/mdm/commands?page=0&page-size=100&sort=dateSent%3Aasc

*EDIT* I realized I missed the "filter" field and it's working now.

1 reply

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • October 18, 2024

The doc page for the API call should have the following under Responses "400: Did you forget to include a filter?"