Method
PATCH /v1/departures/:id
Path Parameters
uuid
Departure ID.
Body Parameters
Headers
string
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)string
application/jsonRequest 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"
}'
await fetch("https://api.voyantcloud.com/v1/departures/dep_456", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VOYANT_API_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({
productId: "prod_123",
endAt: "2025-06-05T20:00:00Z",
attributes: { channel: "early-bird" },
}),
})
import os, requests
resp = requests.patch(
"https://api.voyantcloud.com/v1/departures/dep_456",
headers={
"Authorization": f"Bearer {os.environ['VOYANT_API_KEY']}",
"content-type": "application/json",
},
json={
"productId": "prod_123",
"status": "cancelled",
},
)
updated = resp.json()
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"
}
}