Skip to main content

Method

PATCH /v1/departures/:id

Path Parameters

id
uuid
Departure ID.

Body Parameters

Headers

Authorization
string
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
content-type
string
application/json

Request Example

curl -X PATCH "https://api.voyantcloud.com/v1/departures/dep_456" \
  -H "Authorization: Bearer $VOYANT_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "productId": "prod_123",
    "status": "scheduled",
    "capacity": 32,
    "meetingPoint": "Port of Piraeus"
  }'

Response

{
  "data": {
    "id": "dep_456",
    "productId": "prod_123",
    "startAt": "2025-06-01T08:00:00.000Z",
    "endAt": "2025-06-05T20:00:00.000Z",
    "capacity": 32,
    "status": "scheduled",
    "meetingPoint": "Port of Piraeus",
    "transportModeId": null,
    "transportConfigId": null,
    "itineraryId": "iti_001",
    "itineraryVersionId": "itv_010",
    "shipId": null,
    "isDirectionReverse": false,
    "externalCodes": null,
    "attributes": { "channel": "early-bird" },
    "createdAt": "2025-02-20T12:34:56.000Z"
  }
}