Add Flight Log
"Effortlessly record and manage drone flight data with Aeromegh's addFlightLog API endpoint."
Last updated
"Effortlessly record and manage drone flight data with Aeromegh's addFlightLog API endpoint."
Last updated
This API provides programmatic access for adding flight log entries with secure API key authentication. It records essential telemetry data and other relevant information, creating a comprehensive record of drone operations.
To use the API, insert your API key in the Authorization header like this:
Replace <YOUR_API_KEY>
with your AeroGCS API key. Without it, you'll get a 401 Unauthorized error.
POST
Parameter | Description | Optional | Example |
---|---|---|---|
Example of the teleData
object:
Response Codes Explanation:
Examples of how you can call this API using curl, Node.js, and Python:
Note: Replace <API_KEY>
with the actual API_KEY provided by Aeromegh.
Example of API response in JSON format:
The API response contains the following parameters:
Code | Details | Message |
---|---|---|
Parameter | Description |
---|---|
droneID
Unique identifier for the drone.
No
P00001004F002B3131510137383337
teleData
Telemetry data collected during the flight.
No
See example JSON object below
flightID
Unique identifier for the flight.
No
ebddac29-c44d-481e-90ff-48a344080fa8
key
Key indicating the type of telemetry data.
No
AS_TELE_DATA
aerostackID
Unique identifier for the Aerostack system.
No
999e8416-d5af-4828-8c44-a83f1e556d4e
timestamp
Timestamp indicating when the telemetry data was received.
No
1715083563
200
The request was successful.
"OK"
400
Request parameters missing.
"Request parameters missing"
500
Internal server error.
"Internal server error"
message
A message indicating the result of the operation. In this case, it confirms that the flight log has been successfully added to the Aeromegh system. The value will be "Flight log added".