Update Messages

Update the status of the message.

Request Format

POST https://{apigw-address}/app-portal-service/v2.1/message/update

Request Parameters (Body)

Name Required or Not Data Type Description
messages true MessageUpdateDTO struct Message list that needs to be updated

MessageUpdateDTO Struct

Name Required or Not Data Type Description
messageId true String Message ID
accessKey true String Service account of the application. The application authenticates with accessKey to obtain the data that it is authorized to access. How to get accessKey>>
state true int Message status: 0: Not processed, 1: Processed

Response Parameters

Name Data Type Description
data data struct (null)

Sample

Request Sample

POST
https://{apigw-address}/app-portal-service/v2.1/message/update
{
  "messages": [
    {
      "accessKey": "yourAccessKey",
      "messageId": "TestMessage0150000927",
      "state": 1
    }
  ]
}

Return Sample

{
  "code": 200,
  "message": "",
  "data": null
}