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

nametypedescription
workspace_idstrID of workspace where we create the setting
workspace_settingCatalogWorkspaceSettingCatalog Workspace Setting object to be created or updated.

Returns

typedescription
UpsertOutcomeCREATED 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)