Create a new Process Instance
POST /process-instances
Creates a new process instance. This does not await for the process instance to complete, i.e. it will be executed asynchronously.
- application/json
Request Body required
A request to create a new process instance
- bpmnProcessId string
BPMN process id of the process to instantiate
- processDefinitionKey int64
Key of the process to instantiate
- variables
Variables to instantiate the process with
Responses
- 200
- 503
successfully created
- application/json
- Schema
- Example (from schema)
Schema
data object
- error string
{
"data": {
"processDefinitionKey": 0,
"bpmnProcessId": "string",
"version": 0,
"processInstanceKey": 0
},
"error": "string"
}
Unable to connect to Zeebe cluster
Request
Request
curl / cURL
curl -L -X POST 'https://korthout.github.io/process-instances' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"bpmnProcessId": "string",
"processDefinitionKey": 0
}'
python / requests
curl -L -X POST 'https://korthout.github.io/process-instances' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"bpmnProcessId": "string",
"processDefinitionKey": 0
}'
go / native
curl -L -X POST 'https://korthout.github.io/process-instances' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"bpmnProcessId": "string",
"processDefinitionKey": 0
}'
nodejs / axios
curl -L -X POST 'https://korthout.github.io/process-instances' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"bpmnProcessId": "string",
"processDefinitionKey": 0
}'