Method
POST /v1/bookings/:id/passengers
Path Parameters
Booking ID
Body Parameters
Array of passenger objects
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)application/json
curl -X POST https://api.voyantcloud.com/v1/bookings/bkg_456def/passengers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"passengers": [
{ "personId": "5f7a1a0b-1111-2222-3333-abcdefabcdef", "role": "lead" }
]
}'
{
"passengers": [
{
"id": "psg_123",
"person_id": "5f7a1a0b-1111-2222-3333-abcdefabcdef",
"role": "lead"
}
]
}
Create or update passengers on a booking by referencing existing people.
POST /v1/bookings/:id/passengers
Hide properties
Authorization: Bearer YOUR_API_KEY)curl -X POST https://api.voyantcloud.com/v1/bookings/bkg_456def/passengers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"passengers": [
{ "personId": "5f7a1a0b-1111-2222-3333-abcdefabcdef", "role": "lead" }
]
}'
{
"passengers": [
{
"id": "psg_123",
"person_id": "5f7a1a0b-1111-2222-3333-abcdefabcdef",
"role": "lead"
}
]
}