MPET
  1. Operator - Voyages
MPET
  • HNA-API
    • Operator - Handlings
      • cancelHandling
      • createDetachedHandling
      • createHandling
      • detachHandling
      • getDetachedHandling
      • moveHandling
      • updateDetachedHandling
      • updateHandling
    • Operator - Visits
      • cancelVisit
      • createVisit
      • finalizeLoadDischargeList
      • moveVisit
      • sendLoadDischargeList
      • updateVisit
    • Operator - Voyages
      • cancelVoyage
        POST
      • createVoyage
        POST
      • getVoyage
        POST
      • updateCargoDeclarations
        POST
      • updateVoyage
        POST
      • updateVoyageRestrictions
        POST
    • Listening
      • disconnectClient
      • listenToShipmentUpdates
      • listenToUpdate
      • resetPosition
      • updatePosition
  1. Operator - Voyages

updateVoyageRestrictions

POST
/hna/voyages/restrictions:update
Operator - Voyages
Register restrictions for the barge voyage
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/hna/voyages/restrictions:update' \
--header 'Content-Type: application/json' \
--data-raw '{
    "voyageId": "string",
    "restrictions": [
        {
            "visitIds": [
                "string"
            ],
            "transportingReefers": true
        }
    ]
}'
Response Response Example
{}

Request

Body Params application/json
voyageId
string 
required
restrictions
array[object (HnaRestrictions) {2}] 
required
visitIds
array[string]
optional
A list of groups of visit ids. Integral planning will always first plan all the visits in the first group, then the visits in the second group, etcetera. However, integral planning will still shuffle the order of the visits within each group.
transportingReefers
boolean 
optional
If the restriction is due to transporting reefers, then integral planning will not change visit times.
Examples

Responses

🟢200default response
application/json
Body
object {0}
Modified at 2024-08-19 11:18:45
Previous
updateVoyage
Next
disconnectClient
Built with