The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Deleting Messages

Last updated: 2025-04-30 15:46:49

1. API Description

api request domain name: iot.cloud.tencent.com/api/exploreropen/tokenapi. This interface (AppDeleteMessage) is used to delete messages.

2. Input Parameter

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, you need to provide the RequestId for the request.
Action
String
Yes
Common parameter. This interface takes values: AppDeleteMessage.
MsgID
String
Yes
Message ID.

3. Output Parameter

Name
Type
Description
RequestId
String
Common parameter. Unique request ID, same as the input parameter. When locating issues, you need to provide the RequestId for the request.
Data
String
Return data.

4. Example

Input Example
POST https://iot.cloud.tencent.com/api/exploreropen/tokenapi HTTP/1.1
content-type: application/json
{
"Action": "AppDeleteMessage",
"RequestId": "f92406b3-5a9a-4fe8-bc43-45e3d794bb68",
"AccessToken": "8b******************b8ec",
"MsgID": 1633328834809856
}
Output example: successful
{
"Response": {
"Data": "OK",
"RequestId": "f92406b3-5a9a-4fe8-bc43-45e3d794bb68"
}
}
Output example: failure
{
"Response": {
"Error": {
"Code": "InvalidParameterValue.InvalidAccessToken",
"Message": "Invalid Token"
},
"RequestId": ""
}
}

5. Error Code

Error Code
Description
InternalError
Internal error.
InvalidParameterValue
Invalid parameter value.
InvalidParameterValue.InvalidAccessToken
The Token is invalid.
InvalidParameterValue.MsgIDInvalid
Illegal message ID.