Test Workflow By Id
POST {{baseUrl}}/workflows/:id/test
Test a workflow with the provided input data. The input data should resemble the input that the trigger will send the workflow. See the event trigger documentation for an example input for the trigger that initiates this workflow.
This endpoint will return an execution ID, which can be used to lookup more information about the execution using the Get a Workflow Execution
endpoint.
This will cause a live run of the workflow, which could result in unintended modifications to your IDN tenant.
Request Body
{"input"=>{"identity"=>{"id"=>"ee769173319b41d19ccec6cea52f237b", "name"=>"john.doe", "type"=>"IDENTITY"}, "changes"=>[{"attribute"=>"department", "oldValue"=>"sales", "newValue"=>"marketing"}, {"attribute"=>"manager", "oldValue"=>{"id"=>"ee769173319b41d19ccec6c235423237b", "name"=>"nice.guy", "type"=>"IDENTITY"}, "newValue"=>{"id"=>"ee769173319b41d19ccec6c235423236c", "name"=>"mean.guy", "type"=>"IDENTITY"}}, {"attribute"=>"email", "oldValue"=>"john.doe@hotmail.com", "newValue"=>"john.doe@gmail.com"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"workflowExecutionId":"0e11cefa-96e7-4b67-90d0-065bc1da5753"}