API/Flight

Delete a flight

Delete a flight by ID.

POST
/flight/delete

Authorization

AuthorizationRequiredBearer <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.

Response Body

Flight deleted successfully

successboolean
export interface Response {
  success?: boolean;
}
 
curl -X POST "//flight/delete" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 0
  }'
{
  "success": true
}
Edit on GitHub

Last updated on