From be622b866fad6e031944bae4bff457b2ac6ce747 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Tue, 10 Mar 2020 10:58:46 +0000 Subject: [PATCH] Update page 'Create Taskmap' --- Create-Taskmap.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Create-Taskmap.md diff --git a/Create-Taskmap.md b/Create-Taskmap.md new file mode 100644 index 0000000..810b71a --- /dev/null +++ b/Create-Taskmap.md @@ -0,0 +1,28 @@ +## Create taskmap +The user can use the "ItemTask" API to execute the TaskmapTask with the item code from the appliancemap in {code}. + +> Request +```javascript +POST /api/v1/items/{code}/tasks +{ + "taskType": "vnd.farmmaps.task.taskmap" +} +``` +> Response 201 +```javascript +{ + "code": "string", + "taskType": "vnd.farmmaps.task.taskmap", + "delay": "", + "attributes": { + "additionalProp1": "string", + "additionalProp2": "string", + "additionalProp3": "string" + } +} +``` + +Response 400 Tasktype not found +Response 401 Not authenticated +Response 403 No WRITE permissions in item +Response 404 Item not found \ No newline at end of file