Craig_G2
Hot Shot
Hot Shot

Executing an action via the REST API

Jump to solution

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

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Craig_G2
Hot Shot
Hot Shot

Ok - Worked it out! Smiley Happy

{

    "parameters": [

        {

                "name": "input",

                "type": "string",

                "scope": "local",

                "value": {

                    "string":{ "value": "Something"}

                }

        }

    ]

}

View solution in original post

0 Kudos
3 Replies
Danco74
Enthusiast
Enthusiast

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.


0 Kudos
Craig_G2
Hot Shot
Hot Shot

Hey thanks for your reply.


Unfortunately i'm this doesn't exist for actions. It's only for workflows!

Thanks

Craig

0 Kudos
Craig_G2
Hot Shot
Hot Shot

Ok - Worked it out! Smiley Happy

{

    "parameters": [

        {

                "name": "input",

                "type": "string",

                "scope": "local",

                "value": {

                    "string":{ "value": "Something"}

                }

        }

    ]

}

View solution in original post

0 Kudos