Patch Workflow
PATCH {{baseUrl}}/workflows/:id
Partially update an existing Workflow using JSON Patch syntax.
Request Body
{"0"=>{"op"=>"replace", "path"=>"/name", "value"=>"Send Email"}, "1"=>{"op"=>"replace", "path"=>"/owner", "value"=>{"type"=>"IDENTITY", "id"=>"2c91808568c529c60168cca6f90c1313", "name"=>"William Wilson"}}, "2"=>{"op"=>"replace", "path"=>"/description", "value"=>"Send an email to the identity who's attributes changed."}, "3"=>{"op"=>"replace", "path"=>"/enabled", "value"=>false}, "4"=>{"op"=>"replace", "path"=>"/definition", "value"=>{"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"}}}}, "5"=>{"op"=>"replace", "path"=>"/trigger", "value"=>{"type"=>"EVENT", "attributes"=>{"id"=>"idn:identity-attributes-changed"}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"d201c5e9-d37b-4aff-af14-66414f39d569","executionCount":2,"failureCount":0,"created":"2022-01-10T16:06:16.636381447Z","modified":"2023-12-05T15:18:27.699Z","modifiedBy":{"type":"IDENTITY","id":"2c9180a46faadee4016fb4e018c20639","name":"Thomas Edison"},"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')]","description":""},"displayName":"est anim sunt velit Duis"}}