Skip to content

Classification

Read classification systems and items, inspect available properties, and read or change element classifications.

Access this group through api.official.classification.

Commands

For exceptions shared by Unified API commands, see error handling.

get_all_classification_systems

get_all_classification_systems() -> list[
    ClassificationSystem
]

Returns the list of available classification systems.

Returns:

get_all_classifications_in_system

get_all_classifications_in_system(
    classification_system_id: ClassificationSystemId,
) -> list[ClassificationItemArrayItem]

Returns the tree of classifications in the given classification system.

Parameters:

Returns:

get_classification_item_availability

get_classification_item_availability(
    classification_item_ids: list[
        ClassificationItemIdArrayItem
    ],
) -> list[
    ClassificationItemAvailabilityWrapperItem | ErrorItem
]

Returns the ids of property definitions available for a given classification item.

Parameters:

Returns:

get_classification_system_ids

get_classification_system_ids() -> list[
    ClassificationSystemIdArrayItem
]

Returns the list of available classification systems.

Returns:

get_classification_systems

get_classification_systems(
    classification_system_ids: list[
        ClassificationSystemIdArrayItem
    ],
) -> list[ClassificationSystemWrapperItem | ErrorItem]

Returns the details of classification systems identified by their GUIDs.

Parameters:

Returns:

get_classifications_of_elements

get_classifications_of_elements(
    elements: list[ElementIdArrayItem],
    classification_system_ids: list[
        ClassificationSystemIdArrayItem
    ],
) -> list[ElementClassificationWrapperItem | ErrorItem]

Returns the classification of the given elements in the given classification systems.

Parameters:

Returns:

  • list[ElementClassificationWrapperItem | ErrorItem] –

    The list of element classification item identifiers. Order of the ids are the same as in the input. Non-existing elements or non-existing classification systems are represented by error objects.

get_details_of_classification_items

get_details_of_classification_items(
    classification_item_ids: list[
        ClassificationItemIdArrayItem
    ],
) -> list[ClassificationItemWrapperItem | ErrorItem]

Returns the details of classification items.

Parameters:

Returns:

set_classifications_of_elements

set_classifications_of_elements(
    element_classifications: list[ElementClassification],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the classifications of elements. In order to set the classification of an element to unclassified, omit the classificationItemId field.

Parameters:

  • element_classifications (list[ElementClassification]) –

    A list of element classification identifiers.

Returns:

These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.