The API call looks like this (using
curl, if you use any other http request tool/library, you’d have to adapt the call):
curl -u :$API_KEY https://info-beamer.com/api/v1/device/$DEVICE_ID -d "setup_id=$SETUP_ID"
$API_KEY being the API key from your account page,
$DEVICE_ID being the id of the device (you can get that from the url of your device config page or from the API) and
$SETUP_ID being the new setup you want the device to switch to (get the id from the setup page url or the API).
As to when to switch: Similar issue. The info-beamer system can’t know if a setup has finished. There is no such status anywhere as a setup can do anything. But you could switch setups every 15 minutes for example.
If you want to programmatically merge setups and you can describe the logic of how to merge, you might take a look at this blog post. But that’s a bit more advanced.
I guess in the future, the schedule player package should have a built-in option of assigning its internal playlists to just some of the assigned devices and not all of them. I think that would solve your use case as you can then have everything in a single setup and control which playlists get scheduled on which devices.