Submit pre-flight checklist
POST
/api/v1/missions/{mission_id}/checklists/pre-flight
const url = 'https://app.ayna.com/api/v1/missions/example/checklists/pre-flight';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"responses":{},"pilot_id":"example","complete_mission":true}'};
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/example/checklists/pre-flight \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "responses": {}, "pilot_id": "example", "complete_mission": true }'Submit pre-flight checklist responses.
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
ChecklistSubmitRequest
Checklist submission request.
object
Example generated
{ "responses": {}, "pilot_id": "example", "complete_mission": true}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}