Skip to main content

Method

PATCH /v1/products/:id/transport/options/:optionId

Path Parameters

id
uuid
Product ID that owns the option.
optionId
uuid
Transport option ID.

Body Parameters

Headers

Authorization
string
Bearer token (requires products:write).
content-type
string
application/json

Request Example

curl -X PATCH "https://api.voyantcloud.com/v1/products/prod_123/transport/options/opt_001" \
  -H "Authorization: Bearer $VOYANT_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "Athens morning flight",
    "seats_available": 18,
    "legs": [
      {
        "mode_id": "mode_flight",
        "operator_org_id": "org_airline",
        "from_place_id": "ChIJ8UNwppk4j4ARzWPaN9xq_9o",
        "to_place_id": "ChIJGaK-SZcYtUYR0Y1DSXB6QrM",
        "flight_number": "RO381",
        "airline_code": "RO",
        "duration_minutes": 160
      }
    ]
  }'

Response

{
  "item": {
    "id": "opt_001",
    "departure_id": "dep_456",
    "key": "athens-flight",
    "name": "Athens morning flight",
    "description": "Morning flight with 20kg luggage included",
    "seats_total": 40,
    "seats_available": 18,
    "pricing_override": {
      "price_delta": { "mode": "flat", "amount": 35 }
    },
    "attributes": {}
  }
}
Providing legs replaces the entire leg set. Include every leg you want to keep in the payload.