setTimedCruisePlan - Set a plan of timing cruise for device - Imou Open Platform
setTimedCruisePlan: Set a plan of timing cruise for device
Detailed description
Set a plan of timing cruise for device, a "TimedCruise" ability is required to use this function(only support single channel device)
Input parameter note
| Parameter List | Note | Parameter Type | Mandatory | Default Validity | Legal value |
|---|---|---|---|---|---|
| token | accessToken | String | Y | ||
| deviceId | Device ID | String | Y | ||
| channelId | channel ID | String | N | ||
| cruiseName | name of plan | String | Y | ||
| cruises | plan list | Object[] | Y | ||
| period | period of cruise | String | Y | ||
| beginTime | time of begin to cruise | String | Y | THHmmss | |
| endTime | time of end to cruise | String | Y | THHmmss |
Sample input
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_12345678901234567890123456789012",
"deviceId":"TESTQWERXXXX-dfXXX-XX",
"channelId":"0",
"cruiseName":"cruise1",
"cruises ":[{
"period":"Monday",
"beginTime":"T000000",
"endTime":"T235959"
}]
}
}
Sample output
{
"id":"123456",
"result":{
"code":"0",
"msg":"Operation is successful."
}
}
