Unfortunately, this is a known limitation of consumed REST services based on OpenAPI in Mendix. There is no convenient way to update the generated JSON mapping incrementally, so re-importing often leads to recreating entities.
If you want more flexibility without fully switching to manual mappings, you can consider using a Message Definition.
With a Message Definition, you define the JSON structure separately and use it in your import/export mappings. This gives you more control compared to the auto-generated structures from consumed REST services.
When the API changes, you can update the Message Definition and adjust the mapping without needing to recreate your entire domain model. This makes it more maintainable, especially for APIs that change frequently.
Alternatively, for full control, you can still use:
So a practical approach is:
Use Message Definitions to decouple your JSON structure, and avoid relying fully on the generated artifacts from the consumed REST service.
If this resolves your question, please mark it as accepted.