How to get the restarted process instance id?

I am useing the camunda spring boot start api to restart a finished process instance .
In the document of restart process instance says ids of the historic and the restarted process instance are different.

But the restart api did not return the restarted process instance id.
The return type of execute method of the restart process instance api is void.

In my case I need that process instance id.
So my question is how can I get the process instance id ?

Thanks you all.

Hi @himly,

I don’t think there is currently an easy way to do that. It would be a useful addition to the API though. Feel free to raise a feature request over at https://app.camunda.com/jira/browse/CAM and/or provide a pull request with this functionality.

Cheers,
Thorben