This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
catalog_workspace_content.
put_declarative_analytics_model
put_declarative_analytics_model(workspace_id: str, analytics_model: CatalogDeclarativeAnalytics)
Sets the declarative analytics model for a given workspace.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | Workspace identification string e.g. "demo" |
| analytics_model | CatalogDeclarativeAnalytics | Object Containing declarative Analytical Model |
Returns
NoneExample
Get an analytics model object CatalogDeclarativeAnalytics using get_declarative_analytics_model from your workspace, modify it and then put it back to the server:
# Get analytics model
declarative_analytics = sdk.catalog_workspace_content.get_declarative_analytics_model(
workspace_id = "123"
)
# Modify the `CatalogDeclarativeAnalytics` object:
# ...
# Put analytics model object back to the server:
sdk.catalog_workspace_content.put_declarative_analytics_model(
workspace_id="123",
analytics_model=declarative_analytics
)