REST Api /history/process-instance get only root instances

Hello

I like to get only the root process instances from history via REST API.

A POST on /history/process-instance with the following body does not work:
{
“superProcessInstanceId”: null
}

All instances are returned.

Any ideas?

Best Regards,
Stefan

Hi Stefan,

The current implementation won’t work for null value.
If you’re interested in runtime, you can try rootProcessInstances param:
https://docs.camunda.org/manual/7.9/reference/rest/process-instance/get-query/

Best regards,
Yana