update_node_type

mutationSince v1.0

Update an existing node type: rename, recolor, change description, or add new properties. For simulation, set_act_script sets or clears the node type's Rhai act script, and update_properties edits existing properties in place — including making a property computed or changing its Rhai formula. Applied immediately and broadcast to all connected users.

Auto-IDs can be configured here too: set_auto_id_enabled, set_auto_id_prefix, set_auto_id_pad_width, set_auto_id_display. remove_properties removes a property and clears its values everywhere (undoable).

Example Request

{"node_type": "Feature", "set_name": "Capability", "set_color": "#ff8200", "add_properties": [{"name": "owner", "data_type": "String"}]}

Example Response

{"success": true, "operation_count": 1, "versions": [45]}

This content was written collaboratively with AI.