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 departure airport code (ICAO or IATA).
The arrival airport code (ICAO or IATA).
The departure date anchor. Accepts either a date-only string (YYYY-MM-DD) or a full ISO 8601 datetime. For partial dates, send January 1st for year-only flights and the first day of the month for month-only flights.
How precise the canonical flight date anchor is. Partial dates apply only to the departure-side anchor.
"day""day" | "month" | "year"The departure time in local airport time. 24- and 12-hour formats are supported.
The arrival date or datetime. Partial-date flights do not support a separate arrival anchor, so omit this or send null unless datePrecision is day.
The arrival time in local airport time. 24- and 12-hour formats are supported.
The passengers on the flight.
1 <= itemsThe ICAO code of the airline.
The flight number.
The ICAO code of the aircraft.
The registration of the aircraft.
Additional notes about the flight.
Custom field values keyed by custom field key. Values must match the configured field type.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://your-instance.com/api/flight/save" \ -H "Content-Type: application/json" \ -d '{ "from": "KJFK", "to": "EGLL", "departure": "2022-01-01", "passengers": [ {} ] }'{
"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
