Queue a typed operational, Display Control, or bounded player-recovery command
const url = 'https://example.com/api/v1/screens/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/commands';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"type":"sync_now","payload":{},"idempotencyKey":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/screens/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/commands \ --header 'Content-Type: application/json' \ --data '{ "type": "sync_now", "payload": {}, "idempotencyKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Display Control command types are display_power_on, display_power_off, display_set_input, display_set_volume, display_mute, display_unmute, display_set_brightness, and display_probe. They are capability-gated by the target Player. A Browser Player runs only sync_now, reload_playback, identify_screen, retry_current_item and skip_current_item; any other command type for a Browser Screen is refused with command_not_supported_by_player. Requires an Owner or Administrator with the write scope. Cookie-authenticated unsafe requests require X-CSRF-Token.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Per-type command arguments validated at queue time.
object
Responses
Section titled “ Responses ”Command queued
object
object
Example
{ "data": { "state": "pending" }}The payload is invalid (command_invalid_payload), or the Screen’s player cannot run this command type (command_not_supported_by_player).
Pending command limit reached