{"_id":"567c4c5a815f250d0094adc1","__v":1,"editedParams":true,"editedParams2":true,"category":{"_id":"567c42b13241c20d00b7312e","project":"5511df3be2990b0d00fb071d","__v":2,"pages":["567c4c5a815f250d0094adc1","567c4c89221af70d00fc53ea"],"version":"5661fdca55e4450d00e62c73","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-24T19:08:33.644Z","from_sync":false,"order":3,"slug":"polygons","title":"Polygons"},"parentDoc":null,"user":"5511dee39171e82b00897349","project":"5511df3be2990b0d00fb071d","version":{"_id":"5661fdca55e4450d00e62c73","project":"5511df3be2990b0d00fb071d","__v":2,"createdAt":"2015-12-04T20:55:38.639Z","releaseDate":"2015-12-04T20:55:38.639Z","categories":["5661fdcb55e4450d00e62c74","5661fdcb55e4450d00e62c75","5661fdcb55e4450d00e62c76","5661fdcb55e4450d00e62c77","5661fdcb55e4450d00e62c78","5661fdcb55e4450d00e62c79","567c42b13241c20d00b7312e"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-24T19:49:46.452Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"curl","code":"curl https://api.astrodigital.com/v2.0/aois -H 'Authorization: Token YOUR_TOKEN'"}]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"count\": 2,\n  \"next\": null,\n  \"previous\": null,\n  \"results\": [\n    {\n      \"id\": 1,\n      \"aoi\": {\n        \"type\": \"GeometryCollection\",\n        \"geometries\": [\n          {\n            \"type\": \"Polygon\",\n            \"coordinates\": [\n              [\n                [\n                  10.571722984313965,\n                  51.38249533118676\n                ],\n                [\n                  10.571722984313965,\n                  51.39307388836406\n                ],\n                [\n                  10.588459968566895,\n                  51.39307388836406\n                ],\n                [\n                  10.588459968566895,\n                  51.38249533118676\n                ],\n                [\n                  10.571722984313965,\n                  51.38249533118676\n                ]\n              ]\n            ]\n          }\n        ]\n      }\n    },\n    {\n      \"id\": 3,\n      \"aoi\": {\n        \"type\": \"GeometryCollection\",\n        \"geometries\": [\n          {\n            \"type\": \"Polygon\",\n            \"coordinates\": [\n              [\n                [\n                  -121.9482421875,\n                  38.19718009396176\n                ],\n                [\n                  -121.9482421875,\n                  38.29424797320529\n                ],\n                [\n                  -121.805419921875,\n                  38.29424797320529\n                ],\n                [\n                  -121.805419921875,\n                  38.19718009396176\n                ],\n                [\n                  -121.9482421875,\n                  38.19718009396176\n                ]\n              ]\n            ]\n          }\n        ]\n      }\n    }\n  ]\n}","name":""}]},"settings":"56a8d993c0e02f0d007fa916","auth":"required","params":[{"_id":"567c4c5a815f250d0094adc3","ref":"","in":"query","required":false,"desc":"Filter by valid Task ID","default":"","type":"int","name":"task_id"},{"_id":"57464a1d130acb0e0029b0de","ref":"","in":"query","required":false,"desc":"Number of items in the API response. Limit is 10,000 items per page","default":"100","type":"int","name":"page_size"}],"url":"/aois"},"isReference":false,"order":0,"body":"Retrieve a list of all valid AOIs associated with a user's account. More about how to work with areas of interest is covered in this [article](doc:areas-of-interest-best-practices)","excerpt":"","slug":"aois","type":"endpoint","title":"/aois"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

task_id:
integer
Filter by valid Task ID
page_size:
integer100
Number of items in the API response. Limit is 10,000 items per page

Examples


Result Format


Documentation

Retrieve a list of all valid AOIs associated with a user's account. More about how to work with areas of interest is covered in this [article](doc:areas-of-interest-best-practices)

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}