{
“action”: “delete”,
“instanceIds”: [
“00059f42-149e-11ed-ba27-02094a0361fb”
],
“deleteReason”: “Maintenance, process finished more than 14 days ago”
}
Always returns this:
{
“message”: “Internal server error”,
“exception”: “Request method ‘POST’ not supported”
}
Changing the operation to DELETE (makes sense right?) always returns the following:
{
“message”: “Not found”,
“exception”: “Could not find a process instance with id ‘delete’.”
}
For the record I did check whether this instanceId exists before (and after) this POST.
Does anyone have some pointers? Or a working example?
We are running 6.7.2.
DELETE with bulk requests is some nasty topic. Some http clients do not support sending DELETE operations with bodies. also RFC allows to reject DELETE requests with payload. That’s why we decided to use the POST for bulk dlete requests.
Your DELETE request is handled by the HistoricProcessInstanceResource
with @DeleteMapping(“history/historic-process-instances/{processInstanceId}”)
your “delete” is used as the processInstanceId. The engine tries to delete the instance if id “delete” but can not find it.