Skip to content

Property

Read property definitions, groups, availability and values, and write element property values.

Access this group through api.official.property.

Commands

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

get_all_property_group_ids

get_all_property_group_ids(
    property_type: None | PropertyType = None,
) -> list[PropertyGroupIdArrayItem]

Returns the identifier of every property group in the current plan. The optional propertyType parameter can be used to filter the results based on the type of the property group (Built-in or User Defined).

Parameters:

Returns:

get_all_property_ids

get_all_property_ids(
    property_type: None | PropertyType = None,
) -> list[PropertyIdArrayItem]

Returns the identifier of every property in the current plan. The optional propertyType parameter can be used to filter the results based on the type of the property (Built-in or User Defined).

Parameters:

Returns:

get_all_property_ids_of_elements

get_all_property_ids_of_elements(
    elements: list[ElementIdArrayItem],
    property_type: None | PropertyType = None,
) -> list[ErrorItem | PropertyIdsOfElementWrapperItem]

Returns all property identifiers of the given elements. The optional propertyType parameter can be used to filter the results based on the type of the property (Built-in or User Defined).

Parameters:

Returns:

get_all_property_names

get_all_property_names() -> list[
    BuiltInPropertyUserId | UserDefinedPropertyUserId
]

Returns the human-readable names of available Property definitions for debug and development purposes.

Returns:

get_details_of_properties

get_details_of_properties(
    properties: list[PropertyIdArrayItem],
) -> list[ErrorItem | PropertyDefinitionWrapperItem]

Returns the details of property definitions.

Parameters:

Returns:

get_property_definition_availability

get_property_definition_availability(
    property_ids: list[PropertyIdArrayItem],
) -> list[
    ErrorItem | PropertyDefinitionAvailabilityWrapperItem
]

Returns the ids of classification items a given property definition is available for.

Parameters:

Returns:

get_property_groups

get_property_groups(
    property_group_ids: list[PropertyGroupIdArrayItem],
) -> list[ErrorItem | PropertyGroupWrapperItem]

Returns the details of property groups.

Parameters:

Returns:

get_property_ids

get_property_ids(
    properties: list[
        BuiltInPropertyUserId | UserDefinedPropertyUserId
    ],
) -> list[ErrorItem | PropertyIdArrayItem]

Returns the identifiers of property definitions for the requested property names.

Parameters:

Returns:

  • list[ErrorItem | PropertyIdArrayItem] –

    List of the ids of the requested properties. Order of the ids are the same as in the input. Existing properties are represented by propertyId objects, non-existing properties are represented by error objects.

get_property_values_of_elements

get_property_values_of_elements(
    elements: list[ElementIdArrayItem],
    properties: list[PropertyIdArrayItem],
) -> list[ErrorItem | PropertyValuesWrapperItem]

Returns the property values of the elements for the given property.

Parameters:

Returns:

  • list[ErrorItem | PropertyValuesWrapperItem] –

    List of property value lists. The order of the outer list is that of the given elements. The order of the inner lists are that of the given properties.

set_property_values_of_elements

set_property_values_of_elements(
    element_property_values: list[ElementPropertyValue],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the property values of elements.

Parameters:

Returns:

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