Update 'Create-Taskmap.md'
This commit is contained in:
parent
7a8420273a
commit
27d62efffb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user