播放盒-EN
  1. System control-related
播放盒-EN
  • API access guide
  • Common Error Codes
  • FAQ
  • User-related
    • Log in to devices
      POST
    • Log out of the device
      DELETE
    • Change user information
      PUT
  • System control-related
    • Screenshot
      GET
    • Restart the device immediately
      POST
    • Obtain device restart schedules
      GET
    • Schedule device restarts
      POST
    • Set time
      POST
    • Install apps
      PUT
    • Obtain time
      GET
    • Factory reset
      PUT
    • Obtain terminal information
      GET
    • Obtain volume
      GET
    • Set volume
      POST
    • Upgrade the device
      PUT
    • Check local upgrade status
      GET
  • Screen control-related
    • Receiving card-related
      • Obtain receiving card connection information
      • Obtain receiving card monitoring information
      • Obtain basic information of the receiving card
      • Configure the screen via receiving card configuration (send .rcfgx file)
      • Configure the screen via receiving card configuration (send .scr file)
      • Upgrade the receiving card
      • Obtain the receiving card upgrade progress
    • Send Card-related
      • Obtain the basic Information of the sending card
    • Obtain screen brightness
      GET
    • Set screen brightness
      POST
    • Obtain screen status
      GET
    • Set screen status
      POST
    • Obtain screen-on/off schedules
      GET
    • Set screen-on/off schedules
      POST
    • Set brightness adjustment schedules
      POST
    • Obtain brightness adjustment schedules
      GET
  • General capabilities
    • Upload files
    • Download files
  • Serial port control
    • Activate RS-485 serial communication
    • Check RS-485 serial port status
  • Board relays
    • Obtain relay information
    • Set relay information
  1. System control-related

Schedule device restarts

POST
/terminal/core/v1/device/reboot-policy
Last modified:2024-08-23 10:08:07
Schedule device restarts
Note: Only the last scheduled task will be executed if multiple tasks are sent. If you want to modify a scheduled task, please obtain the current task, make modifications to it, and then send it again.

Request

Header Params
Content-Type
string 
optional
Example:
application/json
Authorization
string 
optional
Default:
1724333189506EO5Zqpduu4+azwYYXMJJhg==
Body Params application/json
conditions
array [object {2}] 
Policy collection
required
For a collection of conditions that are executed according to the conditions, multiple condition triggers are supported.
cron
array[string]
cron expression
required
Each condition is represented by an array of cron expressions. When it is an array, the cron expressions are related by an or logic.
enable
boolean 
Enable
required
Whether to enable this condition
Example
{
  "conditions": [
    {
      "cron": [
        "0 0 0 15 2 ? 2022"
      ],
      "enable": true
    },
    {
      "cron": [
        "1 1 0 3,15 * ? *"
      ],
      "enable": true
    }
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://192.168.0.10:16674/terminal/core/v1/device/reboot-policy' \
--header 'Authorization: 1724333189506EO5Zqpduu4+azwYYXMJJhg==' \
--header 'Content-Type: application/json' \
--data-raw '{
  "conditions": [
    {
      "cron": [
        "0 0 0 15 2 ? 2022"
      ],
      "enable": true
    },
    {
      "cron": [
        "1 1 0 3,15 * ? *"
      ],
      "enable": true
    }
  ]
}'

Responses

🟢200Success
application/json
Body
code
integer 
Status code
required
Status code SUCESS= 0; ERROR = 1;
message
string 
Descriptive information
required
data
object  | null 
optional
Example
{
  "code": 0,
  "message": ""
}
🟢200Error
Previous
Obtain device restart schedules
Next
Set time
Built with