Create a Process Instance

post

/process/api/v1/instances

Create a new instance of the process. You can use any of the following to create an instance: processDefinitionId, processDefinitionKey, and applicationName with applicationVersion and processName. When creating by applicationName, applicationVersion and processName, the applicationVersion is optional. If the applicationVersion is not provided, then the default version is selected to create the instance.

Request

Header Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
To create a process instance, provide params and data. For params object, provide one of the following: processDefId, or processDefKey, or applicationName and processName along with applicationVersion. If createWith is id, provide only processDefinitionId. If createWith is key, provide only processDefinitionKey. If createWith is app, provide applicationName, processName, and applicationVersion. The applicationVersion parameter is optional, and if it is not provided then the default version is considered.
Show Source
Nested Schema : dataObject
Type: object
Additional Properties Allowed
Show Source
Nested Schema : default
Type: object
Nested Schema : params
Type: object
Show Source
Nested Schema : additionalProperties
Type: object
Examples

Back to Top

Response

Supported Media Types

201 Response

successful operation
Body ()
Root Schema : CreateUnifiedInstanceOutput
Type: object
Match All
Show Source
Nested Schema : CreateInstanceOutput
Type: object
Match All
Show Source
Nested Schema : CommonModel
Type: object
Show Source
Nested Schema : CreateInstanceOutput-allOf[1]
Type: object
Show Source
Nested Schema : CreateUnifiedInstanceOutput-allOf[1]
Type: object
Show Source
  • Allowed Values: [ "DYNAMIC", "STRUCTURED" ]
    Type of the process instance
Nested Schema : UserOrAppClient
Match All
Show Source
Nested Schema : Discriminator: type
Type: object
Show Source
Nested Schema : IdentityCommon
Type: object
Show Source

400 Response

Returned if the body parameter is invalid
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

401 Response

Unauthorized
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

403 Response

The process execution cannot be instantiated because of Process restrictions
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

404 Response

Process definition does not exist.
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

500 Response

Internal server error
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Examples

Back to Top