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

nametypedescription
workspace_idstringWorkspace identification string e.g. "demo"
analytics_modelCatalogDeclarativeAnalyticsObject Containing declarative Analytical Model

Returns

None

Example

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
)