Skip to content

Update pilot

PATCH
/api/v1/pilots/{pilot_id}
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.

pilot_id
required
Pilot Id
string
Media typeapplication/json
PilotUpdateRequest

Schema for updating a pilot.

object
first_name
Any of:
string
>= 1 characters <= 100 characters
last_name
Any of:
string
>= 1 characters <= 100 characters
email
Any of:
string format: email
phone
Any of:
string
<= 20 characters
callsign
Any of:
string
<= 50 characters
pilot_type
Any of:
string
part_108_certification_number
Any of:
string
<= 50 characters
part_108_issue_date
Any of:
string format: date
part_108_expiration_date
Any of:
string format: date
certifications
Any of:
Array<object>
object
key
additional properties
any
training_records
Any of:
Array<object>
object
key
additional properties
any
has_medical_exemption
Any of:
boolean
medical_exemption_details
Any of:
string
emergency_contact_name
Any of:
string
<= 255 characters
emergency_contact_phone
Any of:
string
<= 20 characters
emergency_contact_relationship
Any of:
string
<= 50 characters
address_line1
Any of:
string
<= 255 characters
address_line2
Any of:
string
<= 255 characters
city
Any of:
string
<= 100 characters
state
Any of:
string
<= 50 characters
postal_code
Any of:
string
<= 20 characters
country
Any of:
string
<= 100 characters
status
Any of:
string
notes
Any of:
string

Example generated

{
"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"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}