When using Workspace ONE for modern management of macOS devices, most of the time I live in the UI, but once in a while it makes sense to just use the API.
You can use any method, from PowerShell in Windows to the terminal, but for this example I’ll use Postman
, you can check out my post
for more of my commonly used tools.
I won’t go into the process of downloading and setting up Postman or creating the necessary permissions for an API account on your WS1 instance. There are some good articles out there on the topic and I will link them at the bottom of this post.
These instructions assume that you have already set up your environment and Postman with the appropriate Tenant Code, API credentials and have set up the API account with the correct permissions.
Once this is set up and you can submit queries and receive data from your Workspace ONE tenant, then you can proceed testing Custom Commands. In this case we will send a custom command that will schedule a software update on a DEP enrolled mac.
The body of the post should look something like this, although you would need to change the Product Key, Version, Deferrals and other details to fit your needs.