I couldn’t use 7.6 rest api to delete process instances asynchronously.
What I did:
POST process-instance/delete-historic-query-based
body: {
“historicProcessInstanceQuery”: {
“processDefinitionKey”:“production-process”
},
“deleteReason” : “aReason”
}
the response was:
{
“type”: “InvalidRequestException”,
“message”: “Process instance with id delete-historic-query-based does not exist”
}
@Y_Chen see the API docs: https://docs.camunda.org/manual/7.7/reference/rest/process-instance/post-delete-historic-query-based/
The field `processDefinitionKey` is not supported as a parameter.