Method
PATCH /v1/products/:id/transport/configs/:configId
Path Parameters
Product ID that owns the transport config.
Transport config ID to update.
Body Parameters
Bearer token (requires products:write).
Request Example
curl -X PATCH "https://api.voyantcloud.com/v1/products/prod_123/transport/configs/cfg_001" \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Coach transfer (updated)",
"legs": [
{
"mode_id": "mode_bus",
"operator_org_id": "org_transport",
"from_place_id": "ChIJ8UNwppk4j4ARzWPaN9xq_9o",
"to_place_id": "ChIJGaK-SZcYtUYR0Y1DSXB6QrM",
"duration_minutes": 50
}
]
}'
Response
{
"item": {
"id": "cfg_001",
"product_id": "prod_123",
"key": "default-coach",
"name": "Coach transfer (updated)",
"description": "Includes welcome signage",
"created_at": "2025-01-05T10:22:41.000Z",
"updated_at": "2025-01-12T07:15:02.000Z"
}
}
When legs is provided, existing legs are deleted and replaced. Include the full set you want to persist.