Redeploy Deployment through java rest api

As per Redeploy Deployment

In this rest api,

POST /deployment/{id}/redeploy

In this redeploy method can we redeploy the .bpmn file again along with below request body?

{
  "resourceIds": [ "aResourceId" ],
  "resourceNames": [ "aResourceName" ],
  "source" : "cockpit"
}

(or)

Redeploy method will accept only request body without .bpmn file?

Mulitpart file is missing in this request

If you want to deploy a .bpmn file - even one that has been deployed previously. You can use the usual create deployment call : https://docs.camunda.org/manual/7.9/reference/rest/deployment/post-deployment/

re-deploy works differently, it would take a previous deployment and redeploy it again.

1 Like