Update a node
update_nodePartially update a node's fields while automatically handling hierarchy validation, role reclassification on type change, and tree path recomputation on parent change.
Instructions
Partial update of a node. Patchable fields: label, type, parent, season, description, tags, metadata, sproutedAt. Type change reclassifies role; parent change recomputes the ltree path automatically. On a grown (past-season) node, only the tree's shape and timeline are locked — parent, season, type and sproutedAt are rejected. Content fields (label, description, metadata, tags) stay editable, so you can keep metadata.implements current when code moves without reopening transplanting. Moving any node into a past season is rejected. Both restrictions lift while the ground is transplanting (project.transplanting=true), so historical structure can be reconstructed (see umtri://rules/transplant). Same protocol validation as create_node — reject on hierarchy violations, warn on soft issues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Node id. | |
| slug | Yes | Ground slug. | |
| patch | Yes | Only the fields you want to change. |