cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to call workflow using DT API and how to pass workflow input parameters in that API

heramb_sawant
Organizer

Hi All,
I have workflow having task  of SRG validation and this task needs input as test timeframe to evaluate srg.

Howe we can call this workflow using dynatrace API and how we can pass SRG task input from API??

Regards,
Heramb Sawant

2 REPLIES 2

heramb_sawant
Organizer

Please help me to on this issue.

jaume_reverte
Dynatrace Enthusiast
Dynatrace Enthusiast

Hello! 

You can make use of the API call /workflows/{id}/run to trigger the execution of a particular workflow. And then in the request body you can send some information. For example: 

{
  "input": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "params": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "uniqueQualifier": "string"
}

This information is then available for ypu to use in the workflow execution time. 

For executing this API call the Required scope: automation:workflows:run is needed for the token. 

Best 

Featured Posts