vRO 7.0.1
Hi,
I'm trying to execute an action via the REST API.
Passing an empty string works for action that return a default value or do not require parameters but i'm unsure how to proceed when they are required..
The documentation says that this is the required payload but I can't work out what to pass:
{
"parameters": [
{
"scope": "",
"name": "",
"description": "",
"type": "",
"value": {
"objectType": ""
},
"updated": false
}
]
}
Has anyone got a working example?
Thanks
Craig
Ok - Worked it out!
{
"parameters": [
{
"name": "input",
"type": "string",
"scope": "local",
"value": {
"string":{ "value": "Something"}
}
}
]
}
Hey there!
Usually what I do - execute the workflow from the java client, expend the run history and highlight the latest execution.
Write down the exeuction id and the workflow id and use them in the following REST request URL:
GET /workflows/{workflowId}/executions/{executionId}
In the response body you'll be able to see under the input-parameters section how to properly insert your input.
Hey thanks for your reply.
Unfortunately i'm this doesn't exist for actions. It's only for workflows!
Thanks
Craig
Ok - Worked it out!
{
"parameters": [
{
"name": "input",
"type": "string",
"scope": "local",
"value": {
"string":{ "value": "Something"}
}
}
]
}