Change currently active element

Hello,
I’m using Camunda 8 and trying to build a custom GUI that will modify a process instance.

I would like to understand how to correctly use the rocess-instances/{processInstanceKey}/modification endpoint to modify the active element of a process instance.

The only way I found to obtain the list of possible elements to activate is to call GET v2/process-definitions/{processDefinitionKey}/xml and then parse the XML. However, this requires parsing and additional logic.

Is there a better way to get the list of available active elements?

Hi @Dominik_Mazurowski

You can use Search Element Instances endpoint to query for element instances

https://docs.camunda.io/docs/apis-tools/orchestration-cluster-api-rest/specifications/search-element-instances/