catalog_workspace_content.
get_attributes_catalog
get_attributes_catalog(workspace_id: str)
Gets all attributes in a given workspace.
Parameters
name | type | description |
---|---|---|
workspace_id | string | Workspace identification string e.g. "demo" |
Returns
type | description |
---|---|
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=[]
# ),
# ...
# ]