catalog_workspace.

create_or_update_custom_application_setting

create_or_update_custom_application_setting(workspace_id: str, custom_application_setting: CatalogCustomApplicationSetting) -> UpsertOutcome

Create a new custom application setting or overwrite an existing one with the same id.

Parameters

nametypedescription
workspace_idstrID of workspace where we create the setting
custom_application_settingCatalogCustomApplicationSettingCatalog Custom Application Setting object to be created or updated. If its id is None, the backend generates one. The generated id is not returned or set on the object; use list_custom_application_settings to find it.

Returns

typedescription
UpsertOutcomeCREATED if the setting did not exist yet, UPDATED if it did.

Example

from gooddata_sdk import CatalogCustomApplicationSetting

setting = CatalogCustomApplicationSetting(
    id="my_app_version",
    application_name="my_app",
    content={"version": "1.2.0"},
)
sdk.catalog_workspace.create_or_update_custom_application_setting(
    workspace_id="demo", custom_application_setting=setting
)