1. API Description
api request domain name:
iot.cloud.tencent.com/api/exploreropen/tokenapi.
This interface (AppModifyTimer) is used to modify the scheduled task of a device.2. Input Parameters
Name | Type | Required | Description |
AccessToken | String | Yes | Common parameter. AccessToken is used for user authentication of a logged-in user. |
RequestId | String | Yes | Common parameter. Unique request ID can be generated manually. It is recommended to use uuid. When locating issues, provide the RequestId for the request. |
Action | String | Yes | Common parameter. This interface takes values AppModifyTimer. |
ProductId | String | Yes | Modify the product ID corresponding to the timer. |
DeviceName | String | Yes | Device name corresponding to the timer. |
TimerName | String | Yes | Timer name. |
TimerId | String | Yes | Timer ID. |
TimePoint | String | Yes | Timer start time. |
Days | String | Yes | Timer activation time, each digit, 0: Off, 1: On, from left to right in sequence represent: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday. |
Repeat | Int | Yes | Whether to loop. 0: Not required. Requirement |
Data | String | Yes | Control message sent when the timer starts. |
3. Output Parameters
Name | Type | Description |
RequestId | String | Common parameter. Unique request ID, same as the input parameter. When locating issues, provide the RequestId for the request. |
4. Samples
Input Example
POST https://iot.cloud.tencent.com/api/exploreropen/tokenapi HTTP/1.1content-type: application/json{"RequestId": "req_1","Action": "AppModifyTimer","ProductId": "US*****DIK","DeviceName": "411_3","AccessToken": "c1******************847e","TimerId":"a1c6939b39d345b897**********a12c","TimerName": "timer_test_modify","Days": "1100000","TimePoint": "9:30","Repeat": 0,"Data": "{\"brightness\": 28}"}
Output sample: successful
{"Response": {"RequestId": "req_1"}}
5. Error Code
Error Code | Description |
InternalError | Internal error. |
InvalidParameterValue | Invalid parameter value. |
InvalidParameterValue.InvalidAccessToken | The Token is invalid. |