Add Offline Flight Logs

"Easily upload offline flight logs and seamlessly integrate drone flight data with Aeromegh's addOfflineFlightLogs API."

This API provides programmatic access for uploading offline flight logs with secure API key authentication. This endpoint accepts POST requests and requires authentication through a bearer token, facilitating the integration of flight data into the system.

Authentication

To use the API, insert your API key in the Authorization header like this:

Authorization: Bearer <YOUR_API_KEY>

Replace <YOUR_API_KEY> with your AeroGCS API key. Without it, you'll get a 401 Unauthorized error.

Method

POST

Post Data Parameters

HTTP Request

https://ags.aeromegh.com/Aeromegh/addOfflineFlightLogs

HTTP Response

Response Codes Explanation:

Code Snippet

Examples of how you can call this API using curl, Node.js, and Python:

curl --location 'https://ags.aeromegh.com/Aeromegh/addOfflineFlightLogs' \
--header 'projectname: test' \
--header 'planname: test' \
--header 'aerostackid: 999e8416-d5af-4828-8c44-a83f1e556d4e' \
--header 'flightid: 1c0d5d87-4a1c-4613-a5eb-2bb1c0a13791' \
--header 'droneid: P00001004F002B3131510137383337' \
--header 'teamid: a16afc9b-5205-4fa5-8c42-6276ce1e3281' \
--header 'Authorization: Bearer <API_KEY>' \
--form 'file=@"postman-cloud:///1ef0c693-4ecd-4390-981e-1feebdb9fdcc"'

Note: Replace <API_KEY> with the actual API_KEY provided by Aeromegh.

API Response

Example of API response in JSON format:

{
    "message": "Logs added"
}

API Response Parameter

The following parameter is included in API response::

Last updated