curl --location --request PUT 'http://jira.local:8080/jira/rest//rest/api/3/workflow/rule/config/delete' \
--header 'Content-Type: application/json' \
--data-raw '{
"workflows": [
{
"workflowId": {
"draft": false,
"name": "Internal support workflow"
},
"workflowRuleIds": [
"b4d6cbdc-59f5-11e9-8647-d663bd873d93",
"d663bd873d93-59f5-11e9-8647-b4d6cbdc",
"11e9-59f5-b4d6cbdc-8647-d663bd873d93"
]
}
]
}'
{"updateResults":[{"workflowId":{"name":"Workflow with one rule not updated","draft":false},"ruleUpdateErrors":{"example-rule-id":["The rule with this id does not exist: example-rule-id"]},"updateErrors":[]},{"workflowId":{"name":"Workflow with all rules successfully updated","draft":true},"ruleUpdateErrors":{},"updateErrors":[]},{"workflowId":{"name":"Non-existing workflow","draft":false},"ruleUpdateErrors":{},"updateErrors":["Workflow not found: WorkflowIdBean{name=Non-existing workflow, draft=false}"]}]}