Skip to content

Create pilot

POST
/api/v1/pilots/
curl --request POST \
--url https://app.ayna.com/api/v1/pilots/ \
--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": "part_107", "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": false, "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": "United States", "status": "active", "notes": "example", "user_profile_id": "example" }'

Create a new pilot.

Media typeapplication/json
PilotCreateRequest

Schema for creating a new pilot.

object
first_name
required
First Name

First name

string
>= 1 characters <= 100 characters
last_name
required
Last Name

Last name

string
>= 1 characters <= 100 characters
email
required
Email

Email address

string format: email
phone
Any of:
string
<= 20 characters
callsign
Any of:
string
<= 50 characters
pilot_type
Pilot Type

Pilot type (part_107, part_108, etc.)

string
default: part_107
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
user_profile_id
Any of:
string format: uuid4

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}