Rest api delete decision id is does not exists

Good morning guys,

i am new in camunda developent and i have a question to the rest api delete for a decision table.

In the response body comes the message this the decision deployment id not exists, but the use deployment id is exists.

Here is my java code.

HttpClient httpClient = HttpClientBuilder.create().build();
HttpDelete delete = new HttpDelete();
delete.setURI(new URI("http://localhost:8080/engine-rest/deployment/" + id));
response = this.httpClient.execute(delete);
System.out.println(EntityUtils.toString(response.getEntity()));

What i am doing wrong?

Thank you very much for your help. Best regards Daniel.

Hi @litti,

Are you referring to this REST API endpoint 1? So, you want to delete a deployment? How do you verify that the deployment id exists?

Cheers,
Roman

Hello roman and thank you for your awnser.

I use the camunda cockpit and there are is a list of decision deployments. The id parameter in the rest api url is identycal with the deployment id in the decsion defenition in the decision delpoyment list.

Yes, i want delete a decision deployment defenition.

What is the rest api endpoint 1?

Hi @litti,

Could you please share the entire response you get?

Cheers,
Roman

This is the response.

{"type":"InvalidRequestException","message":"Deployment with id '1cdfacf0-e6f7-11e6-8484-5254005af79b' do not exist"}

Hi @litti,

When you execute this request GET http://localhost:8080/engine-rest/deployment/1cdfacf0-e6f7-11e6-8484-5254005af79b, then the correct deployment is returned?

Does that mean that the id 1cdfacf0-e6f7-11e6-8484-5254005af79b is the id of the decision definition?

Cheers,
Roman

1 Like