Create Workflow
POST {{baseUrl}}/workflows
Create a new workflow with the desired trigger and steps specified in the request body.
Request Body
{"name"=>"Send Email", "owner"=>{"type"=>"IDENTITY", "id"=>"2c91808568c529c60168cca6f90c1313", "name"=>"William Wilson"}, "description"=>"Send an email to the identity who's attributes changed.", "definition"=>{"start"=>"Send Email Test", "steps"=>{"Send Email"=>{"actionId"=>"sp:send-email", "attributes"=>{"body"=>"This is a test", "from"=>"sailpoint@sailpoint.com", "recipientId.$"=>"$.identity.id", "subject"=>"test"}, "nextStep"=>"success", "selectResult"=>nil, "type"=>"action"}, "success"=>{"type"=>"success"}}}, "enabled"=>false, "trigger"=>{"type"=>"EVENT", "attributes"=>{"id"=>"idn:identity-attributes-changed", "filter"=>"$.changes[?(@.attribute == 'manager')]"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |