Update Messages¶
Update the status of the message.
Prerequisite¶
The associated application has been purchased by the organization.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.1/message/update
Request Parameters (Body)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
messages |
Mandatory |
MessageUpdateDTO Struct |
The list of the messages that needs to be updated. |
MessageUpdateDTO Struct¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
messageId |
Mandatory |
String |
The message ID. |
accessKey |
Mandatory |
String |
The service account of the application. The application authenticates with |
state |
Mandatory |
Integer |
The message status.
|
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Data Struct |
(null) |
Sample¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.1/message/update
method: POST
requestBody:
{
"messages": [
{
"accessKey": "yourAccessKey",
"messageId": "TestMessage0150000927",
"state": 1
}
]
}
Return Sample¶
{
"code": 200,
"message": "",
"data": null
}