From 27d62efffb2d6df093357824bf2eba8b08d41578 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Wed, 10 Feb 2021 20:29:52 +0000 Subject: [PATCH] Update 'Create-Taskmap.md' --- Create-Taskmap.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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