updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new workflow-issue types mappings. The draft workflow scheme can be published in Jira.curl --location --request PUT '/rest/api/3/workflowscheme//workflow?workflowName' \
--header 'Content-Type: application/json' \
--data-raw '{
    "issueTypes": [
        "10000"
    ],
    "updateDraftIfNeeded": true,
    "workflow": "jira"
}'{"defaultWorkflow":"jira","description":"The description of the example workflow scheme.","draft":false,"id":101010,"issueTypeMappings":{"10000":"scrum workflow","10001":"builds workflow"},"name":"Example workflow scheme","self":"https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"}