Edit IoT Schema#
IoTSchema.Edit
Overview#
This operation is used to Edit an IoT Schema.
Setup#
No specific setup is required other than to meet the preconditions of the transaction.
Preconditions#
- The IoT Schema exists in the system.
Sequence of Steps#
The Edit IoT Schema wizard can be called from the IoT Schema page within Data Platform menu.
You can edit the non-system properties in this wizard, subject to the restrictions below. You cannot change the Name of the IoT Schema.
Indexing and Shared Schemas#
For the indexed properties, set Index Order (IndexOrder) to unique, consecutive values from 1 to the number of indexed properties. Validation uses the flattened schema, including properties in nested schemas, so two properties in different nested schemas cannot use the same index order.
Changes to a shared IoT Schema also affect the IoT Event Definitions that use it, including through nested schemas. You cannot remove a property if any affected IoT Event Definition has Create Data Set (CreateDataSet) enabled. The same validation applies to schema imports.
Accepted changes to indexed properties or their order queue recreation of each affected ClickHouse table, with one metadata-based request per table. The queued work is published after the SQL transaction commits; a rollback discards pending sends. Follow the asynchronous work in System Monitoring before using the changed data. For the event wizard confirmation and table-readiness behavior, see Edit IoT Event Definition.
