{"_id":"5c660b7a77adf5002790ccad","project":"5511df3be2990b0d00fb071d","user":"5511dee39171e82b00897349","version":{"_id":"5c660b7a77adf5002790ccc3","project":"5511df3be2990b0d00fb071d","__v":0,"forked_from":"5661fdca55e4450d00e62c73","createdAt":"2015-12-04T20:55:38.639Z","releaseDate":"2015-12-04T20:55:38.639Z","categories":["5c660b7a77adf5002790cc9c","5c660b7a77adf5002790cc9d","5c660b7a77adf5002790cc9e","5661fdcb55e4450d00e62c77","5c660b7a77adf5002790cc9f","5c660b7a77adf5002790cca0","5c660b7a77adf5002790cca1"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"__v":15,"githubsync":"","category":{"_id":"5c660b7a77adf5002790cca0","version":"5c660b7a77adf5002790ccc3","__v":8,"pages":["5c660b7a77adf5002790cca7","5661fdcc55e4450d00e62c81","5661fdcc55e4450d00e62c82","5661fdcc55e4450d00e62c83","5661fdcc55e4450d00e62c84","5661fdcc55e4450d00e62c85","5661fdcc55e4450d00e62c86","5661fdcc55e4450d00e62c87","5661fdcc55e4450d00e62c88","5c660b7a77adf5002790ccab","5c660b7a77adf5002790ccac","5c660b7a77adf5002790ccad","567c48a3815f250d0094adbd","5c660b7a77adf5002790ccae","5c660b7a77adf5002790ccaf","5c660b7a77adf5002790ccb2"],"project":"5511df3be2990b0d00fb071d","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-27T12:30:20.218Z","from_sync":false,"order":1,"slug":"alerts-notifications","title":"Tasks & Results"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-24T19:31:53.713Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"name":"","code":"{\n    \"id\":1,\n    \"name\":\"My Alert\",\n    \"created_at\":\"2016-01-27T15:24:03.126309Z\",\n    \"updated_at\":\"2016-01-27T15:24:03.126335Z\",\n    \"query\":{\n        \"date_to\":\"2017-01-01\",\n        \"MGRS_cell\": \"10SGE\"\n        \"date_from\":\"2015-01-01\"\n    },\n    \"status\":\"ACTIVE\",\n    \"status_time\":\"2016-01-27T15:24:03.126087Z\",\n    \"expected_results\":20,\n}","language":"json"},{"language":"json","status":400,"name":"","code":"{\"detail\":\"Invalid request. The following fields are either missing or have no value: name\"}"}]},"settings":"56a8d993c0e02f0d007fa916","examples":{"codes":[{"code":"curl 'https://api.astrodigital.com/v3.0/tasks' --data '{\n  \"name\":\"Our Arugula Field\", \t\n  \"query\": {\n    \"date_from\": \"2015-11-01\",\n    \"date_to\": \"2016-01-01\",\n    \"MGRS_cell\": \"10SGE\"\n  }\n}' -H 'Content-Type: application/json' -H 'Authorization: Token YOUR_TOKEN'","language":"curl"}]},"method":"post","auth":"required","params":[],"url":"/tasks"},"isReference":false,"order":2,"body":"Create a new Task with the specified data, the response will be the newly created Task representation with a platform unique ID.\n\nEach Task will need a valid `name` and `query` arrays.","excerpt":"","slug":"tasks-1","type":"endpoint","title":"/tasks"}

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

Create a new Task with the specified data, the response will be the newly created Task representation with a platform unique ID. Each Task will need a valid `name` and `query` arrays.

User Information

Try It Out

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