Skip to content

Create mission

POST
/api/v1/missions/
curl --request POST \
--url https://app.ayna.com/api/v1/missions/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "assigned_drone_ids": [ "660e8400-e29b-41d4-a716-446655440001" ], "customer_name": "Acme Warehousing Inc", "description": "Inspect warehouse roof for damage after storm", "estimated_cost": 500, "mission_type": "commercial", "name": "Warehouse Roof Inspection", "operation_latitude": 37.7749, "operation_location": "123 Industrial Way, San Francisco, CA", "operation_longitude": -122.4194, "planned_end_time": "2025-11-25T16:00:00Z", "planned_start_time": "2025-11-25T14:00:00Z", "primary_pilot_id": "550e8400-e29b-41d4-a716-446655440000", "service_type": "inspection", "tags": [ "inspection", "commercial", "roof" ] }'

Create a new mission.

Media typeapplication/json
MissionCreateRequest

Request to create a new mission.

object
name
required
Name

Mission name

string
>= 1 characters <= 255 characters
description
Any of:
string
mission_type
required
Mission Type

Mission type: commercial, recreational, maintenance

string
Allowed values: recreational commercial maintenance
planned_start_time
Any of:
string format: date-time
planned_end_time
Any of:
string format: date-time
primary_pilot_id
Any of:
string format: uuid4
fleet_id
Any of:
string format: uuid4
assigned_pilot_ids
Any of:
Array<string>
assigned_drone_ids
Any of:
Array<string>
assigned_aircraft_ids
Any of:
Array<string>
operation_location
Any of:
string
<= 255 characters
operation_latitude
Any of:
number
>= -90 <= 90
operation_longitude
Any of:
number
>= -180 <= 180
operation_area
Any of:
object
key
additional properties
any
customer_name
Any of:
string
<= 255 characters
customer_contact
Any of:
string
<= 255 characters
service_type
Any of:
string
estimated_cost
Any of:
number
requires_waiver
Requires Waiver

Requires FAA waiver?

boolean
waiver_numbers
Any of:
Array<string>
risk_assessment_completed
Risk Assessment Completed

Risk assessment completed?

boolean
risk_assessment_data
Any of:
object
key
additional properties
any
notes
Any of:
string
tags
Any of:
Array<string>

Example

{
"assigned_drone_ids": [
"660e8400-e29b-41d4-a716-446655440001"
],
"customer_name": "Acme Warehousing Inc",
"description": "Inspect warehouse roof for damage after storm",
"estimated_cost": 500,
"mission_type": "commercial",
"name": "Warehouse Roof Inspection",
"operation_latitude": 37.7749,
"operation_location": "123 Industrial Way, San Francisco, CA",
"operation_longitude": -122.4194,
"planned_end_time": "2025-11-25T16:00:00Z",
"planned_start_time": "2025-11-25T14:00:00Z",
"primary_pilot_id": "550e8400-e29b-41d4-a716-446655440000",
"service_type": "inspection",
"tags": [
"inspection",
"commercial",
"roof"
]
}

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}