Skip to content

Add training record

POST
/api/v1/pilots/{pilot_id}/training
curl --request POST \
--url https://app.ayna.com/api/v1/pilots/example/training \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "training_type": "example", "training_date": "example", "instructor": "example", "description": "example" }'

Add a training record to pilot history.

pilot_id
required
Pilot Id
string
Media typeapplication/json
TrainingRequest

Legacy training record request.

object
training_type
required
Training Type
string
training_date
required
Training Date
string
instructor
Any of:
string
description
Any of:
string

Example generated

{
"training_type": "example",
"training_date": "example",
"instructor": "example",
"description": "example"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}