{
  "opencollection": "1.0.0",
  "info": {
    "name": "Aloft API V1 Accounts Flights API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Flights",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all flights",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Search for term."
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "The field to order the data by"
              },
              {
                "name": "order",
                "value": "",
                "type": "query"
              },
              {
                "name": "aircraft_model[]",
                "value": "",
                "type": "query",
                "description": "Filter by aircraft models"
              },
              {
                "name": "aircraft_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "user_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "user_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "start",
                "value": "",
                "type": "query"
              },
              {
                "name": "stop",
                "value": "",
                "type": "query"
              },
              {
                "name": "mission_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "batteries[]",
                "value": "",
                "type": "query",
                "description": "Filter by batteries"
              },
              {
                "name": "aircraft[]",
                "value": "",
                "type": "query",
                "description": "Filter by aircraft"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_length",
                "value": "",
                "type": "query"
              },
              {
                "name": "exclude_mission",
                "value": "",
                "type": "query"
              },
              {
                "name": "has_flight_session",
                "value": "",
                "type": "query"
              },
              {
                "name": "flight_session_uuid",
                "value": "",
                "type": "query"
              },
              {
                "name": "merged",
                "value": "",
                "type": "query"
              },
              {
                "name": "origin_system[]",
                "value": "",
                "type": "query"
              },
              {
                "name": "origin_env[]",
                "value": "",
                "type": "query"
              },
              {
                "name": "origin_method[]",
                "value": "",
                "type": "query"
              },
              {
                "name": "airspace[]",
                "value": "",
                "type": "query"
              },
              {
                "name": "has_laanc_auth",
                "value": "",
                "type": "query",
                "description": "When true, only return missions with LAANC authorizations. When false, only return missions without LAANC authorizations."
              },
              {
                "name": "appends[]",
                "value": "",
                "type": "query",
                "description": "Array of appendable resource names"
              },
              {
                "name": "tags[]",
                "value": "",
                "type": "query",
                "description": "array of tag ids"
              },
              {
                "name": "tags_required",
                "value": "",
                "type": "query",
                "description": "When true, all tags must be connected to the object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get all flights"
        },
        {
          "info": {
            "name": "Create a flight",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "appends[]",
                "value": "",
                "type": "query",
                "description": "Array of appendable resource names"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a flight"
        },
        {
          "info": {
            "name": "Get a flight",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "1",
                "type": "path",
                "description": "The flight ID"
              },
              {
                "name": "appends[]",
                "value": "",
                "type": "query",
                "description": "Array of appendable resource names"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get a flight"
        },
        {
          "info": {
            "name": "Update a flight",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "appends[]",
                "value": "",
                "type": "query",
                "description": "Array of appendable resource names"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a flight"
        },
        {
          "info": {
            "name": "Delete a flight",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a flight, only for manual flights"
        },
        {
          "info": {
            "name": "Merge flights",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:target_flight_id/merge/:source_flight_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "target_flight_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "source_flight_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Merge an imported flight (target_flight) with a manual one (source_flight)."
        },
        {
          "info": {
            "name": "Flight unmerge info",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id/unmerge",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Flight unmerge info"
        },
        {
          "info": {
            "name": "Unmerge flight.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id/unmerge",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Unmerge flight"
        },
        {
          "info": {
            "name": "Create a flight from a flight log.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/import",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "format",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "user_id",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a flight from a flight log."
        },
        {
          "info": {
            "name": "Reimports a flight a dji if there is a native log DJI.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/reimport",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Reimports a flight a dji if there is a native log DJI."
        },
        {
          "info": {
            "name": "Attaches a media file to a flight.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id/media",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Attaches a media file to a flight."
        },
        {
          "info": {
            "name": "Playback a flight",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id/playback",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "output",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get data required for playback of a flight"
        },
        {
          "info": {
            "name": "Download flight path as KML",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aloft.ai/v1/account/:account_id/flights/:flight_id/flight-path",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "flight_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get data required for flight path playback as KML"
        }
      ]
    }
  ],
  "bundled": true
}