Last Updated on : 2023-07-25 05:56:46download
Enable or disable a scheduled task of the specified device.
PUT: /v2.0/cloud/timer/device/{device_id}/state
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | path | true | The device ID. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| timer_id | String | body | true | The ID of the specified scheduled task. |
| enable | Boolean | body | true | The status of the specified scheduled task. Valid values:
|
| Parameter name | Type | Description |
|---|---|---|
| result | Boolean | The returned result. |
PUT: /v2.0/cloud/timer/device/6ccb7dc348****/state
{
"timer_id": "2****",
"enable": true
}
{
"tid": "bd6ad6f3d1f311ed87a3525400d83734",
"result": true,
"t": 1680508033221,
"success": true
}
For more information, see error code.
For more information, see Limits on API Request Frequency.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback