Add Offline Flight Logs

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

The addOfflineFlightLogs API enables users to upload offline flight logs, facilitating the integration of flight data into the system. This endpoint accepts POST requests and requires authentication through a bearer token.

Authentication with API Keys

This API uses API keys for authentication. To access the API, you'll need to include a valid API key in the Authorization header of your request using the Bearer token scheme. Here's the format:

Authorization: Bearer <YOUR_API_KEY>
  • Replace <YOUR_API_KEY> with your actual API key obtained from Aeromegh.

  • Requests without a valid API key will result in a 401 Unauthorized error.

Method

POST

Post Data Parameters

ParameterDescriptionOptionalExample

projectname

Specifies the name of the project

No

"test"

planname

Indicates the name of the flight plan

No

"test"

aerostackid

Unique identifier for the Aerostack system

No

"999e8416-d5af-4828-8c44-a83f1e556d4e"

flightid

Unique identifier for the flight

No

"1c0d5d87-4a1c-4613-a5eb-2bb1c0a13791"

droneid

Unique identifier for the drone

No

"P00001004F002B3131510137383337"

teamid

Unique identifier for the team

No

"a16afc9b-5205-4fa5-8c42-6276ce1e3281"

HTTP Request

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

HTTP Response

Response Codes Explanation:

CodeDetailsMessage

200

The request was successful.

"OK"

400

Request parameters missing.

"Request parameters missing"

500

Internal server error.

"Internal server error"

Code Snippet

Take a look at how you might call this method using our official libraries, or via curl:

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

After successfully processing the request to add a flight log, the API returns a message confirming the action with 'Flight log added'. This indicates that the flight log has been added to the Aeromegh system. The added flight log contains comprehensive details about a recent flight, encompassing information such as the date, time, location, and relevant flight data.

{
    "message": "Logs added"
}

API Response Parameter Details

The API response contains the following parameters:

ParameterDescription

message

A message indicating the result of the operation. In this case, it confirms that the logs has been successfully added to the Aeromegh system. The value will be "Logs added".

Last updated