Update Workflow

PUT {{baseUrl}}/workflows/:id

Perform a full update of a workflow. The updated workflow object is returned in the response.

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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"d201c5e9-d37b-4aff-af14-66414f39d569","executionCount":2,"failureCount":0,"created":"2022-01-10T16:06:16.636381447Z","creator":{"type":"IDENTITY","id":"2c7180a46faadee4016fb4e018c20642","name":"Michael Michaels"},"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":null,"type":"ACTION"},"success":{"type":"success"}}},"enabled":false,"trigger":{"type":"EVENT","attributes":{"id":"idn:identity-attributes-changed","filter.$":"$.changes[?(@.attribute == 'manager')]"}}}