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).
Replace a vessel's manifest
put
/vessels/{imo}/manifestreplaceManifest
The whole manifest at once — a PUT, because half a manifest is not a
smaller manifest, it is a wrong one.
Autorisierung
Eines davon genügt
apiKeyapiKey · X-Api-Key · KopfzeileA key from the account page.
Eines davon genügt
bearerhttp · bearerA token obtained from the authorisation server.
Parameter
Pfad
imo*ErforderlichstringMuster ^IMO[0-9]{7}$The vessel's IMO number.
Kopfzeile
If-MatchstringThe manifest revision you are replacing.
Anfragekörper Erforderlich
application/json
object
entries*Erforderlicharray<object>Jedes Element
objectManifestEntryline*Erforderlichintegermin 1contents*ErforderlichanyMindestens eines von
- object
consignmentIdstring
- object
descriptionstringweightKgnumbermin 0
json
{
"entries": [
{
"line": 1,
"contents": {
"consignmentId": "00000000-0000-4000-8000-000000000000"
}
}
]
}Antworten
200
The manifest as it now stands.application/json
array<object>
Jedes Element
objectManifestEntry
line*Erforderlichintegermin 1contents*ErforderlichanyMindestens eines von
- object
consignmentIdstring
- object
descriptionstringweightKgnumbermin 0
json
[
{
"line": 1,
"contents": {
"consignmentId": "00000000-0000-4000-8000-000000000000"
}
}
]412
Something went wrong, described the same way every time.application/problem+json
objectProblem
title*ErforderlichstringA short, human-readable summary.status*Erforderlichintegermin 400max 599detailstring | null
json
{
"title": "string",
"status": 400,
"detail": "string"
}Anfrage senden
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'