Logo
OpenText Developer Cloud public resources API Documentation

Create a new executable process model

POST {{baseUrl}}/runtime/models

Deploy the contents of BPMN based process model. Process instances can be triggered for these deployed process models. Use the key returned in the API response to create process instances for the deployed model.
If the same process model is updated and deployed again, a higher version of the process model is deployed. New process instances are always created on the latest versions of the process models, and the previously triggered process instances continue to run on the corresponding older versions.The process model can be defined using the workflow modeler. The content of the process model (required for modelContent) can be exported and copied as a BPMN 2.0 encoded xml or BPMN 2.0 json directly from the workflow modeler.

Sample request body :
{
modelId : SampleModelId,
modelType: xml/json,
modelContent: encoded BPMN xml content for xml type / plain BPMN json for json type
}

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status Created





Curl
curl -X POST 'baseUrl/runtime/models' -H 'Content-Type: application/json' -d '{"modelContent":"encoded BPMN xml content for xml type / plain BPMN json for json type","modelId":"SampleModelId","modelType":"xml/json"}'

ENDPOINTS