update software on an individual device via the API
As discussed in Slack - there's currently an "update_apps" command in the API - but that only applies to device groups. I'd like to be able to update software on an individual device via the API.
i.e. to push a test device to the latest and greatest, but leaving other devices on the standard version...
There's a button to do this in the GUI, so I'm hoping adding that to the API shouldn't be too bad?
-
Michael Wells commented
To follow up, I've always used Simple MDM with an app running in Kiosk (aka SAM) mode. I've written a bunch of scripts/software using the API to manage my particular setup and I always used the 'POST https://a.simplemdm.com/api/v1/devices/{DEVICE_ID}/push_apps'; call. I'd assumed (perhaps incorrectly) that this would update the apps if the versions had changed. At least right now that doest _NOT_ happen if the app is running in Kiosk mode. If I go to the devices page and hit the button for force update the app, it _DOES_ work.
So one question is: is there _any_ way to update a single device with a new version of the app? If not, that is a major major major deal-breaker for me and I'd find the API terribly broken if that was the fact. Any comment on this would be greatly appreciated. This seams like a glaring omission from the API unless I'm missing something. :)
-
Michael Wells commented
This is a huge deal for me too. I'm not 100% sure, but it looks like an app running in SAM mode cannot be updated using the push_apps API call. It does appear to work when using the force update button from the devices page however. I'm hoping there is another workaround for this issue, but in any case, this would be very useful in it's own right.