catalog_workspace.

create_or_update

create_or_update(workspace: CatalogWorkspace)

Creates a new workspace or overwrite an existing workspace with the same id.

Parameters

nametypedescription
workspaceCatalogWorkspaceData source Object, including physical data model.

Returns

None

Raises

typedescription
Value ErrorWorkspace parent can not be updated.

Example

# Create workspace
sdk.catalog_workspace.create_or_update(
    CatalogWorkspace(
        workspace_id="123",
        name="Test demo",
        parent_id="demo"
    )
)