NodeUpdatePosition.mdx•1.74 kB
---
title: Node Update Position
description: |
Update the node's position in the tree, which optionally allows for
changing the node's parent either to another node or to `null` which
severs the parent and moves the node to the root. This endpoint also
allows for moving the node's sort position within either its current
parent, or when moving it to a new parent. Use this operation for a
draggable tree interface or a table interface.
full: false
_openapi:
method: PATCH
route: /nodes/{node_slug}/position
toc: []
structuredData:
headings: []
contents:
- content: |
Update the node's position in the tree, which optionally allows for
changing the node's parent either to another node or to `null` which
severs the parent and moves the node to the root. This endpoint also
allows for moving the node's sort position within either its current
parent, or when moving it to a new parent. Use this operation for a
draggable tree interface or a table interface.
---
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
Update the node's position in the tree, which optionally allows for
changing the node's parent either to another node or to `null` which
severs the parent and moves the node to the root. This endpoint also
allows for moving the node's sort position within either its current
parent, or when moving it to a new parent. Use this operation for a
draggable tree interface or a table interface.
<APIPage document={"../api/openapi.yaml"} operations={[{"path":"/nodes/{node_slug}/position","method":"patch"}]} webhooks={[]} hasHead={false} />