Pular para o conteúdo principal
POST
/
v1
/
exceptions
/
bulk
/
dispatch
Bulk dispatch exceptions
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/exceptions/bulk/dispatch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "exception_ids": [
    "<string>"
  ],
  "target_system": "JIRA",
  "queue": "<string>"
}
'
{
  "succeeded": [
    "<string>"
  ],
  "failed": [
    {
      "exception_id": "<string>",
      "error": "<string>"
    }
  ],
  "total": 10
}

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication (format: "Bearer {token}")

Cabeçalhos

X-Request-Id
string

A unique identifier for tracing the request across services.

X-Idempotency-Key
string

Optional idempotency key for safe retries. Also accepts Idempotency-Key as an alternative header name. If the same key is sent again and the original request was already processed, the cached response is returned with X-Idempotency-Replayed: true.

See Retries and idempotency for details.

Corpo

application/json

Bulk dispatch payload

Request payload for bulk dispatching exceptions

exception_ids
string[]
obrigatório

List of exception IDs to dispatch (maximum 100)

Required array length: 1 - 100 elements
target_system
string
obrigatório

Target external system

Maximum string length: 255
Exemplo:

"JIRA"

queue
string

Target queue within the external system

Maximum string length: 255

Resposta

Bulk operation completed (check response for partial failures).

The response includes the X-Idempotency-Replayed header.

If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.

See Retries and idempotency for more details.

Response from a bulk operation with success and failure details

succeeded
string[]

List of exception IDs that were processed successfully

failed
object[]

List of failures with exception IDs and error messages

total
integer

Total number of exceptions in the request

Exemplo:

10