# DeploymentApi.createDeployment with TenantId creates always new versions of process

**URL:** <https://forum.camunda.io/t/deploymentapi-createdeployment-with-tenantid-creates-always-new-versions-of-process/63941>\
**Category:** Discussion & Questions\
**Created:** [August 12, 2025, 7:03am UTC](https://forum.camunda.io/t/deploymentapi-createdeployment-with-tenantid-creates-always-new-versions-of-process/63941 "2025-08-12T07:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfrankow](https://forum.camunda.io/user_avatar/forum.camunda.io/pfrankow/32/31499_2.png) [@pfrankow](https://forum.camunda.io/u/pfrankow)\
**Post date:** [August 12, 2025, 7:03am UTC](https://forum.camunda.io/t/deploymentapi-createdeployment-with-tenantid-creates-always-new-versions-of-process/63941/1 "2025-08-12T07:03:46Z")

</div>

Hi,  
when I’m deploying new process bpmn via Camunda7 API DeploymentApi.createDeployment with Tenant ID then in the DB a new version of the same process is added. When Tenant ID is null then no new version is added. The documentation is saying:

 ![image](https://forum.camunda.io/uploads/default/original/3X/d/2/d242bcf3ce1c87a331883ca2d3ff239159a15525.png)

In a loop I’m providing the list of the same tenantIds to deploy each resource for each tenant. If there is only one tenantID in the list, then it’s nor creating a new version of the same process. The issue occurs when providing more then one.

Is it a bug?

 ![image](https://forum.camunda.io/uploads/default/original/3X/9/0/901322eb74844c2b0d113185c741bcd0c4d0bb50.png)

 ![image](https://forum.camunda.io/uploads/default/original/3X/c/9/c9ef4a50e55d3ce4ca2e62fe6bd6417b22d1538a.png)

---

<div class="post-metadata">

**Author:** ![panevop526](https://forum.camunda.io/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@panevop526](https://forum.camunda.io/u/panevop526)\
**Post date:** [August 13, 2025, 1:14pm UTC](https://forum.camunda.io/t/deploymentapi-createdeployment-with-tenantid-creates-always-new-versions-of-process/63941/2 "2025-08-13T13:14:34Z")

</div>

Hello!  
Did you have a fix on this issue?  
[mymilestonecard com sign in](https://www.mymilestonecard.onl)

---

<div class="post-metadata">

**Author:** ![pfrankow](https://forum.camunda.io/user_avatar/forum.camunda.io/pfrankow/32/31499_2.png) [@pfrankow](https://forum.camunda.io/u/pfrankow)\
**Post date:** [August 13, 2025, 1:56pm UTC](https://forum.camunda.io/t/deploymentapi-createdeployment-with-tenantid-creates-always-new-versions-of-process/63941/3 "2025-08-13T13:56:47Z")

</div>

Nope.  
When passing one or null tenantId (‘one’ also as a single object in List/Set !) then there are no duplicates created (same processes with new versions). But when I’m adding at least one additional tennantId to the list then it’s multiplicating the existing processes with newer versions.
