Edit and hide general data

Hello,
can you help me with some customization on bpmn properties.
I want to edit the General data (id and name) of a process after i have created the default process, with some data that i get from an API response. and after this i want to Hide the part of General in the photo because i don’t want to let the user to change these information.
Capture

So you want to hide some parts of the properties panel after you edit one element once? This will be difficult to realize. The contents of the properties panel is dependant on what element you select and its type.

You could create a custom properties provider which handles your custom logic. Your use case would not be to add new groups and entries but to hide them by a condition. You could override the existing general group by your custom provider.