Create Device Scheduled Power Action

POST {{baseUrl}}/v1/device/:deviceUid/scheduled-power-action

Set device scheduled power action by deviceUid.

Schedule new power action.

  • APP_RESTART – Restart APP on the display and clear HTML caches;
  • SYSTEM_REBOOT – Restart device
  • APPLET_RELOAD – Hard reload of saved content and files
  • APPLET_REFRESH – Soft refresh of the applet (like F5)
  • DISPLAY_POWER_ON – turn on display (not chip)
  • DISPLAY_POWER_OFF – Turn off the display (not chip)
  • APPLET_DISABLE – Disable applet for the current session and show basic device info
  • APPLET_ENABLE – Enable applet again for the current session and show current applet

Parameters

FieldTypeRequiredDescription
deviceUidstringrequiredUnique Device Identification

Body

content-type: application/json or application/x-www-form-urlencoded

FieldTypeDescription
powerActionstring ‘APPRESTART’ ‘SYSTEMREBOOT’ ‘APPLETRELOAD’ ‘APPLETREFRESH’ ‘DISPLAYPOWERON’ ‘DISPLAYPOWEROFF’ ‘APPLETDISABLE’ ‘APPLETENABLE’the Power action type, UPPERCASE
weekdays (weekdays[0] - for x-www-form-urlencoded)string[] ‘MONDAY’ ‘TUESDAY’ ‘WEDNESDAY’ ‘THURSDAY’ ‘FRIDAY’ ‘SATURDAY’ ‘SUNDAY’List of weekdays when the power action should be triggered, UPPERCASE
timestring - HH:MM:SSTime in 24 hour format, when the power action should be triggered

HEADERS

KeyDatatypeRequiredDescription
x-authstringAuthorization key and token
Content-Typestring
Content-Typestring
Acceptstring

RESPONSES

status: OK

{}