Skip to content

Update drone

PATCH
/api/v1/aircraft/{drone_id}
curl --request PATCH \
--url https://app.ayna.com/api/v1/aircraft/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "callsign": "RAVEN-2", "firmware_version": "v1.2.3", "name": "Mavic 3 Enterprise - Updated", "operational_status": "active", "remote_id": "RID-XYZ789" }'

Update drone properties by MAVLink ID. Only provided fields are updated.

drone_id
required
Drone Id
string
Media typeapplication/json
DroneUpdateRequest

Request to update a drone.

object
name
Any of:
string
>= 1 characters <= 255 characters
callsign
Any of:
string
<= 50 characters
manufacturer
Any of:
string
<= 100 characters
model
Any of:
string
<= 100 characters
serial_number
Any of:
string
<= 100 characters
remote_id
Any of:
string
<= 100 characters
faa_registration_number
Any of:
string
<= 50 characters
fleet_id
Any of:
string format: uuid4
operational_status
Any of:
string
weight_grams
Any of:
integer
max_takeoff_weight_grams
Any of:
integer
firmware_version
Any of:
string
<= 50 characters
notes
Any of:
string

Example

{
"callsign": "RAVEN-2",
"firmware_version": "v1.2.3",
"name": "Mavic 3 Enterprise - Updated",
"operational_status": "active",
"remote_id": "RID-XYZ789"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}