Skip to content

Cancel flight

POST
/api/v1/flights/{flight_id}/cancel
curl --request POST \
--url https://app.ayna.com/api/v1/flights/example/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "reason": "Weather conditions deteriorated" }'

Cancel a flight.

flight_id
required
Flight Id
string
Media typeapplication/json
Any of:
FlightCancelRequest

Request to cancel a flight.

object
reason
Any of:
string

Example

{
"reason": "Weather conditions deteriorated"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}