Skip to main content

Move a node to a new parent

PATCH 

/nodes/:nodeId

Moves the node under the parent supplied in the body, recomputing the parent-id and parent-name paths of the node and all its descendants. Enforces valid move targets. Returns the moved node only, not its subtree: the paths of the descendants are rewritten in the database, but returning them made the answer grow with the tree without a client being able to use it. A client holding a cached subtree has to discard it and load it again.

Request

Responses

Returns moved node and all it's (non-deleted) children