diff --git a/Create-Taskmap.md b/Create-Taskmap.md index 4f4d395..3acaca4 100644 --- a/Create-Taskmap.md +++ b/Create-Taskmap.md @@ -9,15 +9,8 @@ The user can use the "ItemTask" API to execute the TaskmapTask with the cropfiel ```javascript POST /api/v1/items/{code}/tasks { - "taskType": "vnd.farmmaps.task.taskmap" -} -``` -> Response 201 -```javascript -{ - "code": "string", - "taskType": "vnd.farmmaps.task.taskmap", - "attributes": { + "taskType": "vnd.farmmaps.task.taskmap", + "attributes": { "inputCode" "{itemCode}" "operation": "shape", // currently only "shape" supported "cellWidth": "10", // in metres @@ -32,10 +25,19 @@ POST /api/v1/items/{code}/tasks }" } } -``` +``` * geojson is expected in WGS84, 4326 projection. * 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 401 Not authenticated Response 403 No WRITE permissions in item