catalog_workspace_content.

get_labels_catalog

get_labels_catalog(workspace_id: str)

Gets all labels in a given workspace.

Parameters

nametypedescription
workspace_idstringWorkspace identification string e.g. "demo"

Returns

typedescription
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
#   ),
#   ...
# ]