Skip to content

Register a part

POST
/api/v1/parts/
curl --request POST \
--url https://app.ayna.com/api/v1/parts/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "aircraft_id": "example", "drone_id": "example", "part_type": "example", "part_name": "example", "manufacturer": "example", "model": "example", "serial_number": "example", "purchase_date": "2026-04-15", "installation_date": "2026-04-15", "max_cycles": 1, "max_hours": 1, "notes": "example", "specifications": {} }'

Register a new part on a drone.

Media typeapplication/json
PartCreateRequest
object
aircraft_id
Any of:
string
drone_id
Any of:
string
part_type
required
Part Type

Battery, motor, propeller, gps, camera, esc, frame, controller, sensor, other

string
part_name
Any of:
string
<= 255 characters
manufacturer
Any of:
string
<= 100 characters
model
Any of:
string
<= 100 characters
serial_number
Any of:
string
<= 100 characters
purchase_date
Any of:
string format: date
installation_date
Any of:
string format: date
max_cycles
Any of:
integer
max_hours
Any of:
number
notes
Any of:
string
specifications
Any of:
object
key
additional properties
any

Example generated

{
"aircraft_id": "example",
"drone_id": "example",
"part_type": "example",
"part_name": "example",
"manufacturer": "example",
"model": "example",
"serial_number": "example",
"purchase_date": "2026-04-15",
"installation_date": "2026-04-15",
"max_cycles": 1,
"max_hours": 1,
"notes": "example",
"specifications": {}
}

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}