I'm writing a function that uses the classic API to add/delete devices from the Exclusion list for a MobileDeviceConfigurationProfile that has a Single App Mode payload. The scope of the profile includes static groups, but sometimes I want just one device to drop out of Single App Mode, and the Exclusion feature does just exactly that.
When I run through the process of adding a device to the Exclusion list via Jamf Pro webUI, when I hit Save I am prompted how I want to distribute - to all devices or only newly added. Once I make the selection the change is saved and the effect is seen on the device(s) immediately.
From my function, when I execute a PUT on the same mobile device configuration profile and add a <mobile_device> to the <scope><exclusion><mobile_devices> section, the command works. I get a 201 response, and I can confirm that I can see the device added if I go back into that profile within the webUI. So, the function is working to add the device to the Exclusion list.
But, the changes are never pushed out to the devices that were changed. How can I complete this last step?