Updated on 2023-08-29 GMT+08:00

Resending Dead Letter Messages

Function

Resending dead letter messages

URI

POST /v2/{engine}/{project_id}/instances/{instance_id}/messages/deadletter-resend

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

engine

Yes

String

Message engine.

Default: reliability

project_id

Yes

String

Project ID. For details about how to obtain it, see Obtaining a Project ID.

instance_id

Yes

String

Instance ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

topic

No

String

Topic.

msg_id_list

No

Array of strings

Message list.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

resend_results

Array of resend_results objects

Result of resending a dead letter message.

Table 4 resend_results

Parameter

Type

Description

msg_id

String

Message ID.

error_code

String

Error code.

error_message

String

Error message.

Example Requests

Resending dead letter messages

POST https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}/messages/deadletter-resend

{
  "topic" : "topic_test",
  "msg_id_list" : [ "id1" ]
}

Example Responses

Status code: 200

Dead letter messages resent.

{
  "resend_results" : [ {
    "msg_id" : "C0A8149E0000277600000000000B6835",
    "error_code" : "DMS.00000000",
    "error_message" : "Success."
  } ]
}

Status Codes

Status Code

Description

200

Dead letter messages resent.

Error Codes

See Error Codes.