Esta página aún no está disponible en tu idioma
La estás leyendo en 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.
Autorización
Cualquiera de estos
apiKeyapiKey · X-Api-Key · CabeceraA key from the account page.
Cualquiera de estos
bearerhttp · bearerA token obtained from the authorisation server.
Parámetros
Ruta
imo*Obligatoriostringpatrón ^IMO[0-9]{7}$The vessel's IMO number.
Cabecera
If-MatchstringThe manifest revision you are replacing.
Cuerpo de la solicitud Obligatorio
application/json
object
entries*Obligatorioarray<object>Cada elemento
objectManifestEntryline*Obligatoriointegermín 1contents*ObligatorioanyAl menos uno de
- object
consignmentIdstring
- object
descriptionstringweightKgnumbermín 0
json
{
"entries": [
{
"line": 1,
"contents": {
"consignmentId": "00000000-0000-4000-8000-000000000000"
}
}
]
}Respuestas
200
The manifest as it now stands.application/json
array<object>
Cada elemento
objectManifestEntry
line*Obligatoriointegermín 1contents*ObligatorioanyAl menos uno de
- object
consignmentIdstring
- object
descriptionstringweightKgnumbermín 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*ObligatoriostringA short, human-readable summary.status*Obligatoriointegermín 400máx 599detailstring | null
json
{
"title": "string",
"status": 400,
"detail": "string"
}Enviar una solicitud
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"
}'