Hi All, We need to migrate one of our workspace fr...
# gooddata-cn
n
Hi All, We need to migrate one of our workspace from one environment to another. There are workspace layout APIs for that. However number of visualizations in source workspace are quite high and /workspace/layout PUT api gives 413 error with all the visualizations object in one request. Also, as /workspace/layout API replace entire layout, there is no way we can export/import visualization objects in chunks. Is there any other way to migrate visualizations?
m
Hi Narinder, when migrating a workspace with a large number of visualizations using the
/api/v1/layout/workspaces/{workspaceId}
(workspace layout) API, you may encounter a 413 error due to payload size limits. Unfortunately, the declarative layout API does not support partial updates or chunked imports - any PUT request will replace the entire workspace layout, and there is no way to migrate only a subset of visualization objects at a time. As a workaround, you can use the entity APIs (such as
/entities/workspaces/{workspaceId}/visualizationObjects
) to migrate individual visualizations and their dependencies. However, this process is more manual and requires careful management to ensure all referenced objects (such as insights and dashboards) are present in the target workspace.
r
Or, you may increase parameter
proxy-body-size
in configuration of your ingress-nginx controller. This parameter defines maximum payload size of POST/PUT request.