I was using camunda rest api 7.9.0 distribution.
Actually i want to delete process instance based on tenantid and businesskey.
process-instance/post-delete/ in this api mentioned using processinstance query we can delete the process instance.
A JSON object with the following properties:
processInstanceIds : A list process instance ids to delete.
processInstanceQuery : A process instance query like the request body described by POST /process-instance .
deleteReason : A string with delete reason.
skipCustomListeners : Skip execution listener invocation for activities that are started or ended as part of this request.
skipSubprocesses : Skip deletion of the subprocesses related to deleted processes as part of this request.
But there’s no examples with processinstance query request.
Can anyone provide the json request body for deleting process instances asynchronously using process instance query?
“deleteReason” : “aReason”,
“skipCustomListeners” : true,
“skipSubprocesses” : true
Instead of processInstanceIds how to pass processinstancequery ?