location
link in the response to determine the status of the task and use Get task to obtain updates.curl --location --request POST 'http://jira.local:8080/jira/rest//rest/api/3/workflowscheme//draft/publish' \
--header 'Content-Type: application/json' \
--data-raw '{
"statusMappings": [
{
"issueTypeId": "10001",
"newStatusId": "1",
"statusId": "3"
},
{
"issueTypeId": "10001",
"newStatusId": "2",
"statusId": "2"
},
{
"issueTypeId": "10002",
"newStatusId": "10003",
"statusId": "10005"
},
{
"issueTypeId": "10003",
"newStatusId": "1",
"statusId": "4"
}
]
}'
{}