Call this operation to update the information of a product.
Limits
This API can be called up to 50 times per second.
Request parameters
Parameter | Type | Required | Description |
---|---|---|---|
Action | String | Yes | The operation that you want to perform. Set the value to UpdateProduct. |
ProductKey | String | Yes | The unique identifier of the product for which you want to update information. |
ProductName | String | Yes | The new product name that you want to use. The product name must consist of 4 to 30 characters, including Chinese characters (each Chinese character counts as two characters), English letters, digits, and underscores (_).
Note The product name must be unique in the current account.
|
Description | String | No | The new product description that you want to use. The description can be up to 100 characters. |
Common Request Parameters | - | Yes | For more information about common request parameters, see Common parameters. |
Response parameters
Parameter | Type | Description |
---|---|---|
RequestId | String | The globally unique ID generated by Alibaba Cloud for the request. |
Success | Boolean | Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed. |
ErrorMessage | String | The error message returned when the call fails. |
Code | String | The error code returned when the call fails. For more information about error codes, see Error codes. |
Examples
Request example
http://iot.cn-shanghai.aliyuncs.com/?Action=UpdateProduct
&ProductKey=al*********
&ProductName=TestProductNew
&Public Request Parameters
Response example
- JSON format
{ "RequestId":"C4FDA54C-4201-487F-92E9-022F42387458", "Success":true, }
- XML format
<? xml version="1.0" encoding="UTF-8"? > <UpdateProductResponse> <RequestId>C4FDA54C-4201-487F-92E9-022F42387458</RequestId> <Success>true</Success> </UpdateProductResponse>