Hello,
we are building an app using the Forge module jiraServiceManagement:assetsImportType
for importing data into JSM assets. The app works fine after submitting the schema and mapping JSON using The Assets API, it successfully imports.
However, we have discovered a typo in “objectTypeName” of one object type, and I would like to correct it by updating the schema and mapping through the Assets API, without deleting the existing schema, its object types, or the already imported objects.
The issue is that the Object Type I’m trying to rename is referenced by some other Object Types. When I attempt to make this change in JSON and patch this using The API endpoint /jsm/assets/workspace/${data.workspaceId}/v1/importsource/${data.importId}/mapping
with PATCH method, I encounter the REFERENCED_OBJECT_TYPE_CHANGED
error.
So my question is: Is there any way to modify the referenced Object Type’s “objectTypeName” and patch it using the Rest API without deleting and reuploading the schema&mapping with the imported data?
Any guidance would be greatly appreciated!