rename_property(class_name, old_prop_name, new_prop_name)
Rename a property. If the property is the class's label property, the label property reference is updated automatically.
Properties
| Name | Type | Description |
|---|---|---|
class_name | str | Class containing the property. |
old_prop_name | str | Current property name. |
new_prop_name | str | New property name. |
Returns:
None
- Type
- None
Raises:
ClassNotFoundError- If the class does not exist.
PropertyNotFoundError- If *old_prop_name* does not exist.
PropertyExistsError- If *new_prop_name* is already in use.