catalog_workspace_content.
get_labels_catalog
get_labels_catalog(workspace_id: str)
Gets all labels in a given workspace.
Parameters
name | type | description |
---|---|---|
workspace_id | string | Workspace identification string e.g. "demo" |
Returns
type | description |
---|---|
list[CatalogLabel] | List of all labels in a given workspace. |
Example
# Get all labels
labels = sdk.catalog_workspace_content.get_labels_catalog(workspace_id="123")
# [
# CatalogLabel(
# id=campaign_channel_id,
# title=Campaign channel id
# ),
# CatalogLabel(
# id=campaign_channels.category,
# title=Category
# ),
# CatalogLabel(
# id=type,
# title=Type
# ),
# ...
# ]