Is it possible to rename the ID of a dataset in th...
# gooddata-cloud
m
Is it possible to rename the ID of a dataset in the LDM? In the GUI I was able to rename the name of a dataset, and the UI also made it seem like I would be able to rename the ID, but it didn’t save the change when I attempted to.
m
Hi Michael, It is not possible to rename the ID dataset in the UI; however, you can do so using API GET and PUT calls. Please be aware that changing the ID is not recommended, as it is a unique value and all backend relationships depend on it, including metrics and visualisations. To change the ID dataset, you will first need to retrieve the complete layout of the workspace by making a
GET /api/v1/layout/workspaces/{workspaceId}
request. Once you have the layout, copy it and paste it into the body of your
PUT /api/v1/layout/workspaces/{workspaceId}
request then you have to edit all the fields where your 'old' id is present, I would recommend to search it, take in mind this change also include the metrics and visualisation in the layout, then do the call. After that you may need to redo the attribute mapping in the UI for the dataset where you changed the ID. For more information, please refer to the documentation. I recommend creating a new workspace for testing purposes before making any changes.
m
Hey thanks Mauricio, I figured this was not recommended and suspected this might be the solution. Thanks for detailing the solution. I think I will probably just keep the ID as is 😅
🙌 1
m
Hi Michael, I am sorry for this workaround, but if you have a complicated LDM and workspace in general I think is a good decision. Have a nice weekend ahead.
m
you too!
💪 1