Update page 'Create Taskmap'

master
Mark van der Wal 2020-03-10 10:58:46 +00:00
parent 6f8c049c98
commit be622b866f
1 changed files with 28 additions and 0 deletions

28
Create-Taskmap.md 100644
View File

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