GET MDM commands via API returning 400 and 401

PhillyPhoto
Valued Contributor

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 1

sdagley
Esteemed Contributor II

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