Skip to content

SortAttribute

Source code in docs_src/capo_customer_profiles/types/sort_attribute.py
class SortAttribute(TypedDict, closed=True):
    name: "capo_customer_profiles.types.field_name.fieldName"
    """<p>The name of the attribute to sort by.</p>"""
    data_type: NotRequired[
        "capo_customer_profiles.types.segment_sort_data_type.SegmentSortDataType"
    ]
    """<p>The data type of the sort attribute (e.g., string, number, date).</p>"""
    order: "capo_customer_profiles.types.segment_sort_order.SegmentSortOrder"
    """<p>The sort order for the attribute (ascending or descending).</p>"""
    type: "capo_customer_profiles.types.sort_attribute_type.SortAttributeType"
    """<p>The type of attribute (e.g., profile, calculated).</p>"""

data_type instance-attribute

data_type: NotRequired[SegmentSortDataType]

The data type of the sort attribute (e.g., string, number, date).

name instance-attribute

name: fieldName

The name of the attribute to sort by.

order instance-attribute

The sort order for the attribute (ascending or descending).

type instance-attribute

The type of attribute (e.g., profile, calculated).