Add Drone
"Seamlessly integrate new drones into your system with Aeromegh's addDrone API."
Last updated
Was this helpful?
Was this helpful?
https://ags.aeromegh.com/Aeromegh/addDrone?${teamId}curl --location 'https://ags.aeromegh.com/Aeromegh/addDrone?teamId=a16afc9b-5205-4fa5-8c42-6276ce1e3281' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data '{
"droneID": "P000010024003B3131510137381045",
"droneName": "testapi",
"uin": "BTASD123DB746",
"model": "134",
"serialNo": "34665dffd4554",
"fcsNo": "dgf34554",
"rcsNo": "ws43433",
"board_type": "cubeOrangePlus",
"green_build_number": "103.265.20240425.01",
"device_ram": "12GB",
"android_version": "Android 9",
"device_model_name": "QUALCOMM MK15",
"firmware_version": "4.4.4",
"license_type": "OEM"
}'//Please install 'axios' module first
//Set your API key before making the request
const axios = require('axios');
let data = JSON.stringify({
"droneID": "P000010024003B3131510137381045",
"droneName": "testapi",
"uin": "BTASD123DB746",
"model": "134",
"serialNo": "34665dffd4554",
"fcsNo": "dgf34554",
"rcsNo": "ws43433",
"board_type": "cubeOrangePlus",
"green_build_number": "103.265.20240425.01",
"device_ram": "12GB",
"android_version": "Android 9",
"device_model_name": "QUALCOMM MK15",
"firmware_version": "4.4.4",
"license_type": "OEM"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://ags.aeromegh.com/Aeromegh/addDrone?teamId=a16afc9b-5205-4fa5-8c42-6276ce1e3281',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <API_KEY>'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
//Please install 'requests' AND 'json' package first
//Set your API key before making the request
import requests
import json
url = "https://ags.aeromegh.com/Aeromegh/addDrone?teamId=a16afc9b-5205-4fa5-8c42-6276ce1e3281"
payload = json.dumps({
"droneID": "P000010024003B3131510137381045",
"droneName": "testapi",
"uin": "BTASD123DB746",
"model": "134",
"serialNo": "34665dffd4554",
"fcsNo": "dgf34554",
"rcsNo": "ws43433",
"board_type": "cubeOrangePlus",
"green_build_number": "103.265.20240425.01",
"device_ram": "12GB",
"android_version": "Android 9",
"device_model_name": "QUALCOMM MK15",
"firmware_version": "4.4.4",
"license_type": "OEM"
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <API_KEY>'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
{
"message" : "Drone has been registered"
}