Skip to content

Edit IoT Event Definition#

🔒 IoTEventDefinition.Edit

Overview#

This operation is used to Edit a Non-System IoT Event Definition. To change a System IoT Event Definition, see IoT Event Definition Security Permissions.

Setup#

No specific setup is required other than to meet the preconditions of the transaction.

Preconditions#

  • The IoT Event Definition exists in the system.
  • The Owner Type of the IoT Event Definition must be different than System.

Sequence of Steps#

The Edit IoT Event Definition wizard can be called on the top left button from the IoT Event Definition page.

You can change all non-system properties in this wizard except the Name, the Unique Name, and the Scope. The Unique Name and the Scope form the name of the Kafka topic of the IoT Event Definition, so you set them only when you create it.

edit_iot_event_definition

Indexing and Schema Changes#

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.

When you change the indexed properties or their order, the wizard asks you to confirm the indexing change. Accepting the change queues recreation of the affected ClickHouse table. Follow the work in System Monitoring; saving the definition does not mean the table is ready.

You cannot remove a property when the affected IoT Event Definition has Create Data Set (CreateDataSet) enabled. This restriction also applies to properties in nested or shared IoT Schemas, and to changes made through schema imports. Before changing a shared schema, review all IoT Event Definitions that use it. See Edit IoT Schema.

The system queues one metadata-based recreation request for each affected table. It publishes the queued work after the SQL transaction commits; a rollback discards the pending sends. Data Platform processes the work asynchronously, so integrations must not expect the ClickHouse table or Data Manager metadata to be ready inside the transaction.

Warning

Review the impact on existing event data and consumers before changing the schema or indexing. Adding a property does not remove the restrictions on existing properties or index orders.