Update 'Create-Taskmap.md'

master
Mark van der Wal 2021-02-10 20:29:52 +00:00
parent 7a8420273a
commit 27d62efffb
1 changed files with 12 additions and 10 deletions

View File

@ -9,15 +9,8 @@ The user can use the "ItemTask" API to execute the TaskmapTask with the cropfiel
```javascript ```javascript
POST /api/v1/items/{code}/tasks POST /api/v1/items/{code}/tasks
{ {
"taskType": "vnd.farmmaps.task.taskmap" "taskType": "vnd.farmmaps.task.taskmap",
} "attributes": {
```
> Response 201
```javascript
{
"code": "string",
"taskType": "vnd.farmmaps.task.taskmap",
"attributes": {
"inputCode" "{itemCode}" "inputCode" "{itemCode}"
"operation": "shape", // currently only "shape" supported "operation": "shape", // currently only "shape" supported
"cellWidth": "10", // in metres "cellWidth": "10", // in metres
@ -32,10 +25,19 @@ POST /api/v1/items/{code}/tasks
}" }"
} }
} }
``` ```
* geojson is expected in WGS84, 4326 projection. * geojson is expected in WGS84, 4326 projection.
* endPoint is optional but angle or endPoint is needed! * endPoint is optional but angle or endPoint is needed!
> Response 201
```javascript
{
"code": "string",
"taskType": "vnd.farmmaps.task.taskmap"
}
```
Response 400 Tasktype not found Response 400 Tasktype not found
Response 401 Not authenticated Response 401 Not authenticated
Response 403 No WRITE permissions in item Response 403 No WRITE permissions in item