DroneDeploy
  • Introduction
  • Introduction
    • Overview
  • API
    • Introduction
    • Authentication
    • Pagination
    • Examples
      • Fetching a Single Object
      • Fetching all Plans for your Organization
      • Fetching Exports
      • Creating an Export
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. Examples

Fetching Exports

PreviousFetching all Plans for your OrganizationNextCreating an Export

Last updated 2 years ago

Was this helpful?

To fetch the exports you first need to fetch the MapPlan. You can do this by using the node query. For details see the section.

query GetExports{
  node(id:"MapPlan:5a0de0835f1e08eaabc732bd"){
    ... on MapPlan{
      exports(first:5){
        edges {
          node {
            id
            user{
              username
            }
            parameters {
              projection
              merge
              contourInterval
              fileFormat
              resolution
            }
            status
            dateCreation
            downloadPath
          }
        }
      }
    }
  }
}

This returns the data:

{
  "data": {
    "node": {
      "exports": {
        "edges": [
          {
            "node": {
              "id": "Export:5ab165f348273300019b14a3",
              "user": {
                "username": "example@dronedeploy.com"
              },
              "parameters": {
                "projection": 3857,
                "merge": true,
                "contourInterval": null,
                "fileFormat": "GEOTIFF",
                "resolution": 0
              },
              "status": "PROCESSING",
              "dateCreation": "2018-03-20T19:50:11.523000+00:00",
              "downloadPath": null
            }
          }
        ]
      }
    }
  }
}

Checking the status of an Export

If you want to keep checking back on the status of a given export you can use the same query shown in Fetching a Single Object to get it.

query GetExport{
  node(id:"Export:5ab165f348273300019b14a3"){
    ... on Export{
      status
      downloadPath
    }
  }
}
Fetching a Single Object
Click here to view this example in the API explorer, substitute your own plan_id to execute the query.