Confirms the device update tasks that are in the pending confirmation state.
Usage notes
- To confirm update tasks in a scheduled update batch, you must call this operation within a specified time range.
- You can use only the POST request method to call this operation.
QPS limits
You can call this API operation up to 20 times per second per account.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ConfirmOTATask | The operation that you want to perform. Set the value to ConfirmOTATask. |
TaskId.N | RepeatList | Yes | y3tOmCDNgpR8F9jnVEzC01**** | The ID of the update task that you want to confirm. You can specify up to 10 task IDs. |
IotInstanceId | String | No | iot-v64******** | The ID of the instance. You can view the ID of the instance on the Overview page in the IoT Platform console. Important
For more information, see Instance overview. |
In addition to the preceding operation-specific request parameters, you must configure common request parameters when you call this operation. For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | iot.system.SystemException | The error code returned if the call fails. For more information about error codes, see Error codes. |
ErrorMessage | String | A system exception occurred. | The error message returned if the call fails. |
RequestId | String | A59D3BE1-E9A3-43F3-9B50-B7C8DE165D9B | The ID of the request. |
Success | Boolean | true | Indicates whether the call was successful.
|
Examples
Sample requests
http(s)://iot.cn-shanghai.aliyuncs.com/?Action=ConfirmOTATask
&TaskId.1=y3tOmCDNgpR8F9jnVEzC01****
&<Common request parameters>
Sample success responses
XML
format
<ConfirmOTATask>
<RequestId>A59D3BE1-E9A3-43F3-9B50-B7C8DE165D9B</RequestId>
<Success>true</Success>
</ConfirmOTATask>
JSON
format
{
"RequestId": "A59D3BE1-E9A3-43F3-9B50-B7C8DE165D9B",
"Success": true
}
Error codes
For a list of error codes, see Service error codes.