Delete a flight
Deprecated
Deprecated: This endpoint will be removed in the next major AirTrail release. Migrate to DELETE /api/v1/flights/{id}. Delete a flight by ID. A passenger requires flight.delete.own; deleting any flight requires flight.delete.any.
Authorization
bearerAuth Go to Settings -> Security and create a new API key. Use the generated key as the bearer token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/flight/delete" \ -H "Content-Type: application/json" \ -d '{}'{ "success": true}Create or update a flight POST
**Deprecated:** This endpoint will be removed in the next major AirTrail release. Migrate to `POST /api/v1/flights` for new flights or `PUT /api/v1/flights/{id}` for updates. Create a new flight or update an existing one. Creating a flight for the API-key user requires `flight.create.own`; creating one for other users requires `flight.create.any`. Updating follows the equivalent `flight.update.*` permissions. On an existing flight, adding, removing, or changing passengers requires the matching `flight.passengers.manage.*` permission.
Get statistics GET
**Deprecated:** This endpoint will be removed in the next major AirTrail release. Migrate to `GET /api/v1/stats`. Get aggregated statistics for completed flights visible to the authenticated API key. `scope=mine` requires `flight.read.own`. `scope=user` and `scope=all` require `flight.read.any`.
