Get in touch
Get in touch

Designate an existing property as the label property for a class

assign_label_property(class_name, prop_name, is_lang_string)

Designate an existing property as the label property for a class. The property is also marked as required (``isOptional=False``).
Properties
NameTypeAttributesDefaultDescription
class_namestrClass name.
prop_namestrProperty name to use as the label.
is_lang_stringbool<optional>TrueWhether the label supports multiple languages.
Returns:
None
Type
None
Raises:
ClassNotFoundError
If the class does not exist.
PropertyNotFoundError
If the property does not exist on the class.