Node Delete
Delete a node and move its direct children to the root, or to the parent specified by `target_node`.
Delete a node and move its direct children to the root, or to the parent
specified by target_node.
storyden-session<token>node_slug*stringUnique node Slug.
xidtarget_node?stringIf set, child nodes will be moved to the target node. If not set, child nodes will be moved to the root.
Node deleted.
application/json- response
destination?A node is a text document with children and assets. It serves as an abstraction for grouping structured data objects. It can represent things such as brands, manufacturers, authors, directors, etc. Nodes can be referenced in content posts and they also have their own content.
curl -X DELETE 'https://example.com/api/nodes/string'{ "destination": { "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "misc": {}, "name": "string", "slug": "string", "current_version_id": "string", "assets": [ { "id": "string", "filename": "string", "path": "string", "mime_type": "string", "width": 0, "height": 0, "parent": {} } ], "link": { "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "misc": {}, "url": "string", "slug": "string", "domain": "string", "title": "string", "description": "string", "favicon_image": { "id": "string", "filename": "string", "path": "string", "mime_type": "string", "width": 0, "height": 0, "parent": {} }, "primary_image": { "id": "string", "filename": "string", "path": "string", "mime_type": "string", "width": 0, "height": 0, "parent": {} }, "liveness_status": "unknown", "liveness_checked_at": "2019-08-24T14:15:22Z", "scrape_status": "pending", "scrape_attempted_at": "2019-08-24T14:15:22Z", "scraped_at": "2019-08-24T14:15:22Z" }, "description": "string", "primary_image": { "id": "string", "filename": "string", "path": "string", "mime_type": "string", "width": 0, "height": 0, "parent": {} }, "content": "string", "owner": { "id": "string", "joined": "2019-08-24T14:15:22Z", "suspended": "2019-08-24T14:15:22Z", "handle": "string", "name": "string", "signature": "string", "roles": [ { "badge": true, "default": true, "id": "string", "name": "string", "colour": "string", "meta": {} } ] }, "parent": {}, "hide_child_tree": true, "tags": [ { "name": "string", "colour": "string", "item_count": 0 } ], "visibility": "draft", "relevance_score": 0, "meta": {} }}Node Create POST
Create a node for curating structured knowledge together.
Node Draft List GET
List a page of draft versions across nodes visible to the caller. This endpoint is designed for moderation and queue screens where you need to review pending draft proposals across nodes. Each draft includes a reference to its target node for context. Drafts are visible based on the caller's permissions: - Draft authors can see their own drafts - Members with `MANAGE_LIBRARY` can see all drafts - Unauthenticated requests receive 401 Unauthorized Results are ordered by `updated_at` descending so recently updated drafts appear first. Use the `page` parameter and response pagination metadata to continue through the results.