Update drone configuration
POST
/api/v1/aircraft/{drone_id}/configuration
const url = 'https://app.ayna.com/api/v1/aircraft/example/configuration';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"current_configuration":{"battery_cells":4,"camera_model":"Hasselblad L2D-20c","gps_enabled":true,"max_speed_mps":19}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/aircraft/example/configuration \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "current_configuration": { "battery_cells": 4, "camera_model": "Hasselblad L2D-20c", "gps_enabled": true, "max_speed_mps": 19 } }'Update the current configuration state of a drone by MAVLink ID.
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
DroneConfigurationUpdateRequest
Request to update drone configuration.
object
current_configuration
required
Current Configuration
Current drone configuration
object
key
additional properties
any
Example
{ "current_configuration": { "battery_cells": 4, "camera_model": "Hasselblad L2D-20c", "gps_enabled": true, "max_speed_mps": 19 }}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}