Saltar al contenido
duxt
Versión futura
Está consultando la documentación de una versión futura. Su documentación y sus funcionalidades pueden cambiar.
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}/manifest

replaceManifest

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 · Cabecera

      A key from the account page.

  • Cualquiera de estos

    • bearerhttp · bearer

      A token obtained from the authorisation server.

Parámetros

Ruta

  • imo*Obligatoriostringpatrón ^IMO[0-9]{7}$

    The vessel's IMO number.

Cabecera

  • If-Matchstring

    The manifest revision you are replacing.

Cuerpo de la solicitud Obligatorio

application/json

object
  • entries*Obligatorioarray<object>

    Cada elemento

    objectManifestEntry
    • line*Obligatoriointegermín 1
    • contents*Obligatorioany

      Al menos uno de

      • object
        • consignmentIdstring
      • object
        • descriptionstring
        • weightKgnumbermí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 1
  • contents*Obligatorioany

    Al menos uno de

    • object
      • consignmentIdstring
    • object
      • descriptionstring
      • weightKgnumbermí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 599
  • detailstring | null
json
{
  "title": "string",
  "status": 400,
  "detail": "string"
}

Enviar una solicitud

Autenticación

Lo que escriba aquí permanece en esta pestaña, no se guarda y solo se envía al servidor que eligió.

Parámetros

Este cuerpo no puede mostrarse como formulario: edítalo como JSON.

La solicitud la envía su navegador, directamente a ese servidor.

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'