Create a Voyage with a Loading and Discharging PortCall with one Cargo with a Loading and Discharging CargoPort.
The created voyage will get the status Estimated (code EST).
Creating a new Cargo with a Loading and Discharging CargoPort and PortCall. The PortCall objects have EventLogDates that specify Arrival, Berthing, Un-berthing, and Departure dates.
Fixing the date on an EventLog object. Note, only EventLogs with EventLog.EventLogDate from the past can be fixed, otherwise, the returned value of isDateFixed will be false.
PUT /EventLog/{KEY}
{
"isDateFixed":true
}
Nominate an estimate voyage
To nominate a voyage of a given vessel first you need to get the last sequence for the vessel in the fleet plan:
GET https://dev.dataloy.com/ws/rest/Voyage?filter=vessel(EQ)1609791&fleetPlanVoyages.fleetPlan.fleetPlanCode(EQ)MASTER&filter=voyageHeader.voyageStatus.statusTypeCode(NE)EST&sort=fleetPlanVoyages.sequence(DS)
sending the HTTP Header property fileds withi this value:
{"fleetPlanVoyages":{"sequence":"*"}}
Then you can nominate the voyage making a PUT sending this payload: