Update Messages


Update the status of the message.

Prerequisite


The associated application has been acquired 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 accessKey to obtain the data that it is authorized to access. How to get accessKey>>

state

Mandatory

Integer

The message status

  • 0: Not processed

  • 1: Processed

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": "your_access_key",
      "messageId": "your_message_id",
      "state": 1
    }
  ]
}

Return Sample


{
  "code": 0,
  "message": "OK",
  "data": true
}