Zum Inhalt springen
duxt
Kommende Version
Sie lesen die Dokumentation einer kommenden Version. Dokumentation und Funktionen können sich noch ändern.
Diese Seite ist noch nicht in deiner Sprache verfügbar
Du liest sie auf English (UK).

Run a batch

post
/batches

runBatch

Takes a list of instructions and applies them in order. This endpoint needs no authentication, which is why it takes nothing destructive.

Autorisierung

Dieser Endpunkt benötigt keine Authentifizierung.

Anfragekörper Erforderlich

application/json

object
  • instructions*Erforderlicharray<any>min. Elemente 1max. Elemente 50

    Jedes Element

    anyInstruction

    Genau eines von

    • objectRelabelInstruction
      • op*Erforderlichany
      • consignmentId*Erforderlichstring
      • reference*Erforderlichstring
    • objectRetagInstruction
      • op*Erforderlichany
      • consignmentId*Erforderlichstring
      • tags*Erforderlicharray<string>

        Jedes Element

        string

    Unterschieden anhand von op

json
{
  "instructions": [
    {
      "op": "relabel",
      "consignmentId": "00000000-0000-4000-8000-000000000000",
      "reference": "string"
    }
  ]
}

Antworten

200
What each instruction did.

application/json

array<any>

Jedes Element

any

Genau eines von

  • object
    • doneboolean
  • objectProblem
    • title*ErforderlichstringA short, human-readable summary.
    • status*Erforderlichintegermin 400max 599
    • detailstring | null
json
[
  {
    "done": true
  }
]

Anfrage senden

Dieser Body lässt sich nicht als Formular darstellen: bitte als JSON bearbeiten.

Die Anfrage sendet Ihr Browser direkt an diesen Server.

curl 'https://api.example.org/v3/consignments?limit=20&cursor=string&status=%5B%0A++%22booked%22%0A%5D&session=string' \
  -H 'Authorization: Bearer demo-token' \
  -H 'X-Request-Id: 00000000-0000-4000-8000-000000000000'