diff --git a/way.json b/way.json index 36891ad..a1831d3 100644 --- a/way.json +++ b/way.json @@ -29,7 +29,7 @@ }, "endpoints": { "GET": { - "/processes": { + "/processes/": { "url": "https://{{authFields.organisation_name}}.workourway.com/api/" } }, @@ -45,13 +45,31 @@ "actionId": "create", "endpoint": "/runs/", "method": "POST", - "helpText": "Create a run for a process.", - "label": "Run process", + "helpText": "Create an empty run for a process.", + "label": "Create a run", + "actionFields": [ + { + "key": "process", + "type": "string", + "required": true, + "label": "Process ID", + "description": "ID of the process to create a run for", + "helpText": "Example: 64" + } + ] + }, + { + "modelId": "run", + "actionId": "create_afap", + "endpoint": "/runs/", + "method": "POST", + "helpText": "Create a run for a process and fill it up to the point where there is more than one choice.", + "label": "Create a run, AFAP mode", "queryParameters": "mode=afap", "actionFields": [ { "key": "process", - "type": "integer", + "type": "string", "required": true, "label": "Process ID", "description": "ID of the process to create a run for", @@ -60,4 +78,4 @@ ] } ] -} +} \ No newline at end of file