Deploy Process Definitions
Learn about the API to deploy process definitions.
Use this API operation to deploy a process definition to create a workflow.
Request
Operation Endpoint:
POST {workflowPath}/workflow/deployments
See the operation on the Developer Portal.
Parameter | Required | Description | |
---|---|---|---|
Headers | Authorization | Yes | Access Token in format "Bearer (see details in Authentication API). |
Content-Type | Yes | Should be " . | |
EnvironmentURL
| Yes | Reltio Environment URL. | |
Body | file | Yes | *bpmn20.xml containing process definition(s). |
tenantId | No | Tenant ID. | |
name | No | Name of the deployment. |
Response
Response Structure:
deploymentId
- ID of the new deploymenterror
- returned if an error is encountered, contains details of the issue:errorCode
- 5-digit error codeerrorMessage
- error messageerrorData
- details of the error:exception
- exception messagestack
- stack trace
innerError
- details of the error from Reltio API:errorMessage
- Reltio API error messageerrorCode
- Reltio API error codeinnerErrorData
- Reltio API inner error data
warning
- returned if the operation is completed with some minor issuesstatus
- result of the operation; possible values are "OK" or "failed"
Example
Request
curl --location 'https://test-workflow.reltio.com/workflow-adapter/workflow/deployments' \
--header 'EnvironmentURL: https://dev.reltio.com' \
--header 'Authorization: Bearer *****************' \
--form 'tenantId="f4k3ptEPNzhe61E"' \
--form 'name="newprocess"' \
--form 'file=@"/C:/Users/you/workflow-processes/newprocessdef.bpmn20.xml"'
Response
{ "deploymentId":"123", "status":"OK"}