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
- 200
- 400
- 401
- 403
- 404
- default
Returns moved node and all it's (non-deleted) children
the default error response
Unauthorized — the bearer token is missing, expired or invalid, or carries no role. Errors raised by the security aspects contain an ErrorDto body; requests rejected by the security filter chain may have an empty body.
Forbidden — the authenticated user lacks the required role or access rights.
Entity not found.
the default error response