Diese Seite ist noch nicht in deiner Sprache verfügbar
Du liest sie auf English (UK).
Run a batch
post
/batchesrunBatch
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 50Jedes Element
anyInstructionGenau eines von
- objectRelabelInstruction
op*ErforderlichanyconsignmentId*Erforderlichstringreference*Erforderlichstring
- objectRetagInstruction
op*ErforderlichanyconsignmentId*Erforderlichstringtags*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 599detailstring | null
json
[
{
"done": true
}
]Anfrage senden
curl 'https://api.example.org/v3/consignments' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer demo-token' \
-H 'X-Request-Id: 00000000-0000-4000-8000-000000000000' \
-d '{
"reference": "HB-1042",
"status": "booked"
}'