Skip to content

Start flight

POST
/api/v1/flights/start
curl --request POST \
--url https://app.ayna.com/api/v1/flights/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "checklist_completed": true, "drone_id": "MAV-001", "flight_type": "commercial", "mission_id": "770e8400-e29b-41d4-a716-446655440002", "pilot_id": "660e8400-e29b-41d4-a716-446655440001", "purpose": "Aerial inspection", "takeoff_altitude_msl_meters": 50, "takeoff_latitude": 37.7749, "takeoff_longitude": -122.4194 }'

Start a new flight.

Media typeapplication/json
FlightStartRequest

Request to start a flight.

object
aircraft_id
Any of:
string
drone_id
Any of:
string
pilot_id
Any of:
string format: uuid4
mission_id
Any of:
string format: uuid4
takeoff_latitude
required
Takeoff Latitude

Takeoff latitude

number
>= -90 <= 90
takeoff_longitude
required
Takeoff Longitude

Takeoff longitude

number
>= -180 <= 180
takeoff_altitude_msl_meters
Any of:
number
flight_type
Any of:
string
checklist_completed
Any of:
boolean
checklist_data
Any of:
object
key
additional properties
any
purpose
Any of:
string
notes
Any of:
string
weather_conditions
Any of:
object
key
additional properties
any

Example

{
"checklist_completed": true,
"drone_id": "MAV-001",
"flight_type": "commercial",
"mission_id": "770e8400-e29b-41d4-a716-446655440002",
"pilot_id": "660e8400-e29b-41d4-a716-446655440001",
"purpose": "Aerial inspection",
"takeoff_altitude_msl_meters": 50,
"takeoff_latitude": 37.7749,
"takeoff_longitude": -122.4194
}

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}