# BPMN API (Version 2)

By using this API you can generate a BPMN file for a given process.

## Creates BPML XML definition for the given element.

 - [GET /{storagecollection}/{tenant}/_api/v2/bpmn/{id}](https://developer.celonis.com/cpm/developer/openapi/openapi/bpmn-api-(version-2)/bpmnv2_export.md)

## Imports the given BPMN posted to this endpoint, used to import new process for updating existing process use the Put method.

 - [POST /{storagecollection}/{tenant}/_api/v2/bpmn](https://developer.celonis.com/cpm/developer/openapi/openapi/bpmn-api-(version-2)/bpmnv2_import.md)

## Update the given BPMN process, process will by identifed by the processContainerID then foreignID if not found will return.

 - [PUT /{storagecollection}/{tenant}/_api/v2/bpmn](https://developer.celonis.com/cpm/developer/openapi/openapi/bpmn-api-(version-2)/bpmnv2_update.md)

