Sagar Sonar
02/05/2025, 5:03 PMMichael Ullock
02/05/2025, 7:27 PMGET >
https://www.gooddata.com/api/v1/layout/workspaces/{workspaceId}/logicalModel
Then update and rename the ID in the exported JSON and then re-upload the modified LDM JSON using: PUT >
https://www.gooddata.com/api/v1/layout/workspaces/{workspaceId}/logicalModel
This method is more flexible but requires careful validation to avoid breaking dependencies. The ID is a key reference in the model and is used internally by metrics, insights. Renaming it will break dependencies (metrics and reports, etc) that use that Attribute where you have renamed the ID
https://www.gooddata.com/docs/cloud/api-and-sdk/api/api_reference_all/#operation/getLogicalModelSagar Sonar
02/05/2025, 10:49 PMMichal Hauzírek
02/06/2025, 8:25 AMGET /api/v1/layout/workspaces/{workspaceId}
this will not only export the logical model but the whole workspace (incl. all metrics, visualizations etc.) You can then refactor the ID - by replacing the old ID everywhere in the workspace - it should not matter that it is used anywhere. Once done, you can PUT the workspace layout back.
What you can see in the Analyze left panel, for each object should be its name.
For the collapsible “folders” these are actually taken from object “tags”. Initially the tag is created based on the dataset name and if you later change this name, the original tag remains, which is a bit confusing if you want to rename the dataset (and there is currently no UI for editing the tags), You can see (and modify) the tags for example in the model/workspace layout API output.Sagar Sonar
02/06/2025, 7:41 PM