From 9b23942afaa9c50c70c8878e4de3c0ce8d7332c3 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 11 May 2020 12:44:52 +0200 Subject: [PATCH] fixed placement of extra explanation of attribute input parameters. --- VRAHaulmkilling-API.md | 50 +++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/VRAHaulmkilling-API.md b/VRAHaulmkilling-API.md index 6b3c823..2b197c7 100644 --- a/VRAHaulmkilling-API.md +++ b/VRAHaulmkilling-API.md @@ -183,31 +183,7 @@ Each constant value object has an **'option'** associated with it that should al ###### Creating an application map with the VRAHaulmkilling task Execute the task with the item code of the cropfield as parameter inside {code}. -Use the code of the input item inside {itemCode}, this specifies an item to use as input. - -**'inputCode'** needs to have a value that is gotten from the haulmkilling agent query. -**'agentName'** needs to have a value that is gotten from the haulmkilling agent query. -**'inputType'** needs to have a value that is gotten from the haulmkilling agent query. -**'selectedOption'** needs to have a value that is gotten from the haulmkilling agent query. - -The given agent values(agentName, inputType and selectedOption) as specified above form a unique combination specifying correct agent data. -For example, the agent with **'agentName'** needs to have an entry of **'inputType'** with a constant object with the **"option"** key and value **'selectedOption'**. -```javascript -{ - "name": "", - "values": { - "": [ - { - "max": 0.9, - "min": 0.25, - "fexp": 2.97, - "fmul": 0.25, - "option": "" - } - ] - } -} -``` +Use the code of the input item inside {itemCode}, this specifies an item to use as input. The resulting application map will be created as a child item of the cropfield item (this item can be queried). > Request @@ -242,6 +218,30 @@ Response 401 Not authenticated Response 403 No WRITE permissions in item Response 404 Item not found +**'inputCode'** needs to have a value that is gotten from the haulmkilling agent query. +**'agentName'** needs to have a value that is gotten from the haulmkilling agent query. +**'inputType'** needs to have a value that is gotten from the haulmkilling agent query. +**'selectedOption'** needs to have a value that is gotten from the haulmkilling agent query. + +The given agent values(agentName, inputType and selectedOption) as specified above form a unique combination specifying correct agent data. +For example, the agent with **'agentName'** needs to have an entry of **'inputType'** with a constant object with the **"option"** key and value **'selectedOption'**. +```javascript +{ + "name": "", + "values": { + "": [ + { + "max": 0.9, + "min": 0.25, + "fexp": 2.97, + "fmul": 0.25, + "option": "" + } + ] + } +} +``` + ##### Optional input parameters ##### There are some optional task attribute input parameters for greater flexibility.