This documentation is for an older version of GoodData.
Go to the latest version of this article.
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
| name | type | description |
|---|---|---|
| workspace_id | str | ID of workspace where we create the setting |
| custom_application_setting | CatalogCustomApplicationSetting | Catalog 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
| type | description |
|---|---|
| UpsertOutcome | CREATED 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
)