catalog_workspace_content.

get_attributes_catalog

get_attributes_catalog(workspace_id: str)

Gets all attributes in a given workspace.

Parameters

nametypedescription
workspace_idstringWorkspace identification string e.g. "demo"

Returns

typedescription
list[CatalogAttribute]List of all attributes in a given workspace.

Example

# Get attributes
attributes = sdk.catalog_workspace_content.get_attributes_catalog(workspace_id="123")

# [
#   CatalogAttribute(
#       id=campaign_channel_id,
#       title=Campaign channel id,
#       labels=[]
#   ),
#   CatalogAttribute(
#       id=campaign_channels.category,
#       title=Category,
#       labels=[]
#   ),
#   CatalogAttribute(
#       id=type,
#       title=Type,
#       labels=[]
#   ),
# ...
# ]