Documentatie/Create-Taskmap.md

30 lines
736 B
Markdown
Raw Normal View History

2020-03-10 10:58:46 +00:00
## Create taskmap
2020-03-10 11:00:40 +00:00
The user can use the "ItemTask" API to execute the TaskmapTask with the item code which contains the tiff data in {code}.
2020-03-10 10:58:46 +00:00
> 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
2020-03-10 11:00:40 +00:00
Response 404 Item not found
This will create the item with shape data as a sibling of the input item.