{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/tasks","auth":"required","results":{"codes":[{"language":"json","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}","name":"","status":200},{"code":"{\"detail\":\"Invalid request. The following fields are either missing or have no value: name\"}","name":"","status":400,"language":"json"}]},"settings":"56a8d993c0e02f0d007fa916","examples":{"codes":[{"language":"curl","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'"}]},"method":"post","params":[]},"next":{"description":"","pages":[]},"title":"/tasks","type":"endpoint","slug":"tasks-1","excerpt":"","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.","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5c660b7a77adf5002790ccad","createdAt":"2015-12-24T19:31:53.713Z","project":"5511df3be2990b0d00fb071d","user":"5511dee39171e82b00897349","version":{"version":"3.0","version_clean":"3.0.0","codename":"","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["5c660b7a77adf5002790cc9c","5c660b7a77adf5002790cc9d","5c660b7a77adf5002790cc9e","5661fdcb55e4450d00e62c77","5c660b7a77adf5002790cc9f","5c660b7a77adf5002790cca0","5c660b7a77adf5002790cca1"],"_id":"5c660b7a77adf5002790ccc3","project":"5511df3be2990b0d00fb071d","__v":0,"forked_from":"5661fdca55e4450d00e62c73","createdAt":"2015-12-04T20:55:38.639Z","releaseDate":"2015-12-04T20:55:38.639Z"},"__v":15,"githubsync":"","category":{"sync":{"isSync":false,"url":""},"pages":["5c660b7a77adf5002790cca7","5661fdcc55e4450d00e62c81","5661fdcc55e4450d00e62c82","5661fdcc55e4450d00e62c83","5661fdcc55e4450d00e62c84","5661fdcc55e4450d00e62c85","5661fdcc55e4450d00e62c86","5661fdcc55e4450d00e62c87","5661fdcc55e4450d00e62c88","5c660b7a77adf5002790ccab","5c660b7a77adf5002790ccac","5c660b7a77adf5002790ccad","567c48a3815f250d0094adbd","5c660b7a77adf5002790ccae","5c660b7a77adf5002790ccaf","5c660b7a77adf5002790ccb2"],"title":"Tasks & Results","slug":"alerts-notifications","order":1,"from_sync":false,"reference":false,"_id":"5c660b7a77adf5002790cca0","version":"5c660b7a77adf5002790ccc3","__v":8,"project":"5511df3be2990b0d00fb071d","createdAt":"2015-08-27T12:30:20.218Z"},"parentDoc":null}

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 }}