Last Updated on : 2023-12-07 03:33:48download
Update the information about a specified timer task group under a device.
PUT: /v1.0/devices/{devId}/timers/groups/{groupId}
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
devId | String | uri | true | The device ID. |
groupId | String | uri | true | The ID of a specified timer task group. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
loops | String | body | true | The running time of a timer task. A seven-digit number consisting of 0 and 1. 0 means disabled and 1 means enabled. |
category | String | body | true | The category of a specified timer task. |
time_zone | String | body | true | The time zone. |
timezone_id | String | body | true | The ID of the time zone. |
instruct | object | body | true | The specific time and device instructions of the timer task. Support setting multiple timer tasks that run simultaneously. |
alias_name | String | body | true | The alias. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | Indicates whether the operation is successful. Valid values:
|
success | Boolean | Indicates whether the API is called successfully. Valid values:
|
t | Long | The timestamp. |
tid | String | The link ID. |
PUT: /v1.0/devices/vdevo15445800464****/timers/groups/000***2ftg
{
"alias_name": "",
"category": "timer",
"timezone_id": "Europe/Vienna",
"instruct": [
{
"functions": [
{
"code": "switch",
"value": false
}
],
"date": "",
"time": "4:0"
}
],
"loops": "1111111"
}
{
"tid": "f6444ebb7ddb11eea7ba0a96cea2****",
"result": true,
"t": 1699409417912,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback