Quick-start mission
POST
/api/v1/missions/quick-start
const url = 'https://app.ayna.com/api/v1/missions/quick-start';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"drone_id":"example","mission_type":"recreational","pilot_id":"example","name":"example","location":{"latitude":1,"longitude":1,"address":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/missions/quick-start \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "drone_id": "example", "mission_type": "recreational", "pilot_id": "example", "name": "example", "location": { "latitude": 1, "longitude": 1, "address": "example" } }'Quick-start a mission - creates a mission ready to start. Designed for on-demand/ad-hoc mission creation from mobile apps.
Request body:
- drone_id: MAVLink hardware ID of the drone (string, not the internal UUID)
- mission_type: ‘recreational’, ‘commercial’, or ‘maintenance’ (default: ‘recreational’)
- pilot_id: UUID of the pilot (optional)
- name: Mission name (auto-generated if not provided)
- location: { latitude, longitude, address } (optional)
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
QuickStartMissionRequest
Quick-start mission request.
object
drone_id
required
Drone Id
MAVLink hardware ID of the drone (not the internal UUID)
string
mission_type
Mission Type
Mission type: recreational, commercial, or maintenance
string
Responses
Section titled “Responses”Created
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}