Update drone
PATCH
/api/v1/aircraft/{drone_id}
const url = 'https://app.ayna.com/api/v1/aircraft/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"callsign":"RAVEN-2","firmware_version":"v1.2.3","name":"Mavic 3 Enterprise - Updated","operational_status":"active","remote_id":"RID-XYZ789"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”drone_id
required
Drone Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DroneUpdateRequest
Request to update a drone.
object
Example
{ "callsign": "RAVEN-2", "firmware_version": "v1.2.3", "name": "Mavic 3 Enterprise - Updated", "operational_status": "active", "remote_id": "RID-XYZ789"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}