APIFlight

Delete a flight

Delete a flight by ID.

POST
/flight/delete

Authorization

Authorization
Required
Bearer <token>

Go to Settings -> Security and create a new API key. Use the generated key as the bearer token.

In: header

Request Body

application/jsonRequired

idnumber

The ID of the flight to delete.

curl -X POST "https://example.com/api/flight/delete" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 0
  }'

Flight deleted successfully

{
  "success": true
}

Edit on GitHub

Last updated on