You can call this operation to delete product tags.

Restriction

You can delete a maximum of 10 tags each time you call this operation.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to DeleteProductTags.
ProductKey String Yes The unique identifier of the product.
ProductTagKeys List<String> Yes The keys of tags in a list.
Common parameters - Yes See Common parameters.

Response parameters

Name Type Description
RequestId String The GUID 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

Sample request

https://iot.cn-shanghai.aliyuncs.com/?Action=DeleteProductTags
&ProductKey=a1h7knJdld1
&ProductTagKey. 1=first
&ProductTagKey. 2=second
&Common request parameters

Sample responses

JSON format

{
  "RequestId": "E7E8456E-EDD7-41D3-83B1-62FF4F5ED6BD",
  "Success": true
}

XML format

<DeleteProductTagsResponse>
    <RequestId>57b144cf-09fc-4916-a272-a62902d5b207</RequestId>
    <Success>true</Success>
</DeleteProductTagsResponse>