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.2/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
|
Error Codes¶
Code |
Description |
---|---|
31400 |
The length of messages exceeds 1000 |
Sample¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.2/message/update
method: POST
requestBody:
{
"messages": [
{
"accessKey": "yourAccessKey",
"messageId": "TestMessage0150000927",
"state": 1
}
]
}
Return Sample¶
{
"code": 0,
"message": "OK",
"data": true
}