Update pilot
PATCH
/api/v1/pilots/{pilot_id}
const url = 'https://app.ayna.com/api/v1/pilots/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"first_name":"example","last_name":"example","email":"[email protected]","phone":"example","callsign":"example","pilot_type":"example","part_108_certification_number":"example","part_108_issue_date":"2026-04-15","part_108_expiration_date":"2026-04-15","certifications":[{}],"training_records":[{}],"has_medical_exemption":true,"medical_exemption_details":"example","emergency_contact_name":"example","emergency_contact_phone":"example","emergency_contact_relationship":"example","address_line1":"example","address_line2":"example","city":"example","state":"example","postal_code":"example","country":"example","status":"example","notes":"example"}'};
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/pilots/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "first_name": "example", "last_name": "example", "email": "[email protected]", "phone": "example", "callsign": "example", "pilot_type": "example", "part_108_certification_number": "example", "part_108_issue_date": "2026-04-15", "part_108_expiration_date": "2026-04-15", "certifications": [ {} ], "training_records": [ {} ], "has_medical_exemption": true, "medical_exemption_details": "example", "emergency_contact_name": "example", "emergency_contact_phone": "example", "emergency_contact_relationship": "example", "address_line1": "example", "address_line2": "example", "city": "example", "state": "example", "postal_code": "example", "country": "example", "status": "example", "notes": "example" }'Update a pilot.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”pilot_id
required
Pilot Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PilotUpdateRequest
Schema for updating a pilot.
object
certifications
Any of:
Array<object>
object
key
additional properties
any
null
training_records
Any of:
Array<object>
object
key
additional properties
any
null
Example generated
{ "first_name": "example", "last_name": "example", "phone": "example", "callsign": "example", "pilot_type": "example", "part_108_certification_number": "example", "part_108_issue_date": "2026-04-15", "part_108_expiration_date": "2026-04-15", "certifications": [ {} ], "training_records": [ {} ], "has_medical_exemption": true, "medical_exemption_details": "example", "emergency_contact_name": "example", "emergency_contact_phone": "example", "emergency_contact_relationship": "example", "address_line1": "example", "address_line2": "example", "city": "example", "state": "example", "postal_code": "example", "country": "example", "status": "example", "notes": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}