Skip to content

Update mission

PATCH
/api/v1/missions/{mission_id}
curl --request PATCH \
--url https://app.ayna.com/api/v1/missions/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "actual_cost": 475, "notes": "Completed ahead of schedule", "payment_status": "paid", "status": "in_progress" }'

Update a mission.

mission_id
required
Mission Id
string
Media typeapplication/json
MissionUpdateRequest

Request to update a mission.

object
name
Any of:
string
>= 1 characters <= 255 characters
description
Any of:
string
mission_type
Any of:
string
Allowed values: recreational commercial maintenance
status
Any of:
string
Allowed values: planning in_progress completed cancelled
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_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
actual_cost
Any of:
number
payment_status
Any of:
string
requires_waiver
Any of:
boolean
waiver_numbers
Any of:
Array<string>
risk_assessment_completed
Any of:
boolean
risk_assessment_data
Any of:
object
key
additional properties
any
notes
Any of:
string
tags
Any of:
Array<string>

Example

{
"actual_cost": 475,
"notes": "Completed ahead of schedule",
"payment_status": "paid",
"status": "in_progress"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}