Update mission
PATCH
/api/v1/missions/{mission_id}
const url = 'https://app.ayna.com/api/v1/missions/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"actual_cost":475,"notes":"Completed ahead of schedule","payment_status":"paid","status":"in_progress"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”mission_id
required
Mission Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
MissionUpdateRequest
Request to update a mission.
object
assigned_drone_ids
Any of:
Array<string>
null
assigned_aircraft_ids
Any of:
Array<string>
null
waiver_numbers
Any of:
Array<string>
null
tags
Any of:
Array<string>
null
Example
{ "actual_cost": 475, "notes": "Completed ahead of schedule", "payment_status": "paid", "status": "in_progress"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}