This documentation is for an older version of GoodData.
Go to the latest version of this article.
catalog_workspace.
create_or_update_workspace_setting
create_or_update_workspace_setting(workspace_id: str, workspace_setting: CatalogWorkspaceSetting) -> UpsertOutcome
Create a new workspace setting or overwrite an existing workspace setting with the same id.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | ID of workspace where we create the setting |
| workspace_setting | CatalogWorkspaceSetting | Catalog Workspace Setting object to be created or updated. |
Returns
| type | description |
|---|---|
| UpsertOutcome | CREATED if the setting did not exist yet, UPDATED if it did. |
Example
from gooddata_sdk import CatalogWorkspaceSetting
setting = CatalogWorkspaceSetting(id="locale", setting_type="LOCALE", content={"value": "fr-FR"})
sdk.catalog_workspace.create_or_update_workspace_setting(workspace_id="demo", workspace_setting=setting)