Add Flight Log
"Effortlessly record and manage drone flight data with Aeromegh's addFlightLog API endpoint."
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.
Authentication
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.
Method
POST
Post Data Parameters
Parameter | Description | Optional | Example |
---|---|---|---|
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 |
Example of the teleData
object:
HTTP Request
HTTP Response
Response Codes Explanation:
Code | Details | Message |
---|---|---|
200 | The request was successful. | "OK" |
400 | Request parameters missing. | "Request parameters missing" |
500 | Internal server error. | "Internal server error" |
Code Snippet
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.
API Response
Example of API response in JSON format:
API Response Parameter
The API response contains the following parameters:
Parameter | Description |
---|---|
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". |
Last updated