Create or update a flight
Create a new flight or update an existing one. If the `id` field is present, the flight will be updated. Otherwise, a new flight will be created.
Go to Settings
-> Security
and create a new API key. Use the generated key as the bearer token.
In: header
The ICAO code of the departure airport.
The ICAO code of the arrival airport.
The departure date, in ISO 8601 format.
date-time
The departure time in local airport time. 24- and 12-hour formats are supported.
The arrival date, in ISO 8601 format.
date-time
The arrival time in local airport time. 24- and 12-hour formats are supported.
The seats on the flight. Each seat must have either a userId
or a guestName
, and at least one seat must have a userId
.
The ICAO code of the airline.
The flight number.
The ICAO code of the aircraft.
The registration of the aircraft.
The reason for the flight.
"leisure" | "business" | "crew" | "other"
Additional notes about the flight.
Partial updates are not supported. All fields must be provided.
The ID of the flight to update.
The ICAO code of the departure airport.
The ICAO code of the arrival airport.
The departure date, in ISO 8601 format.
date-time
The departure time in local airport time. 24- and 12-hour formats are supported.
The arrival date, in ISO 8601 format.
date-time
The arrival time in local airport time. 24- and 12-hour formats are supported.
The seats on the flight. Each seat must have either a userId
or a guestName
, and at least one seat must have a userId
.
The ICAO code of the airline.
The flight number.
The ICAO code of the aircraft.
The registration of the aircraft.
The reason for the flight.
"leisure" | "business" | "crew" | "other"
Additional notes about the flight.
Response Body
curl -X POST "https://your-instance.com/api/flight/save" \
-H "Content-Type: application/json" \
-d '{
"from": "KJFK",
"to": "EGLL",
"departure": "2022-01-01T00:00:00Z",
"seats": [
{}
]
}'
{
"success": true
}
{
"success": true,
"id": 1
}
{
"success": false,
"errors": [
"string"
]
}
{
"success": "false",
"message": "Unauthorized"
}
{
"success": "false",
"message": "Forbidden"
}
{
"success": "false",
"message": "string"
}
Last updated on