Some of my apps don't have too many users at once and will sometimes have no users. For these apps when it comes to deploying a new build of an app, I prefer to just wait until there are no users and then restart the app rather than schedule a maintenance window. I can check manually in the Sprintr with the "Show logged in users" page.
I was hoping to write a simple script to automate this which would use the Deploy API to check is there are any current users of the app and if not restart the app (where the new build was already deployed waiting for the restart).
However there is no API call to see if there are any current users. The idea suggestion is to add an API call which returns either the number of current users, or a boolean.