Node Version Get
Get an edit version for a node. The version must belong to the node identified by `node_slug`. Applied versions are immutable historical snapshots and are visible to callers who can read the target node. The draft version is visible only to its author and members with `MANAGE_LIBRARY`.
Get an edit version for a node.
The version must belong to the node identified by node_slug. Applied
versions are immutable historical snapshots and are visible to callers
who can read the target node. The draft version is visible only to its
author and members with MANAGE_LIBRARY.
storyden-session<token>node_slug*stringUnique node Slug.
xidversion_id*stringNode version ID.
xidNode version retrieved.
application/json- response
A draft or applied edit for a library node. Draft versions are mutable working snapshots. Applied versions are immutable snapshots that were copied into the target node upon publishing of the changes.
id*IdentifierA unique identifier for this resource.
xidcreated_at*stringdate-timeupdated_at*stringdate-timenode_id*IdentifierA unique identifier for this resource.
xidauthor*A minimal reference to an account.
status*NodeVersionStatus"draft""applied"previous?Previous applied version for historical comparison. Only present when retrieving an individual applied version and an earlier applied version exists.
name*NodeNameslug*NodeSlugA URL-safe slug for uniquely identifying resources.
description?string|nullcontent?string|nullproperties*array<>Complete desired-state property list for the target node. Properties are replace-all and are not merged with existing values when the version is applied.
meta*Arbitrary metadata for the resource.
curl -X GET 'https://example.com/api/nodes/string/versions/string'{ "id": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "node_id": "string", "author": { "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": {} } ] }, "status": "draft", "previous": { "id": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "author": { "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": {} } ] }, "status": "draft" }, "name": "string", "slug": "string", "description": "string", "content": "string", "properties": [ { "fid": "string", "name": "string", "value": "string", "type": "text", "sort": "string" } ], "meta": {}}Node Version Draft Update PATCH
Update the node's single working draft checkpoint. This is a stable alias for patching the draft version of a node without first listing versions or knowing the draft version identifier. The node must already have a draft visible to the caller. This operation does not create a draft and does not apply the draft to the target node. The caller must be the draft author or have `MANAGE_LIBRARY`. Fields omitted from the request are left unchanged on the draft snapshot. Explicit null values clear nullable fields. Properties are a complete desired-state list for the target node properties.
Node Version List GET
List edit versions for a node. Versions have two states: draft and applied. A version is a draft when it is pre-published. There can only be a single draft of a node. Applied versions are immutable historical snapshots of the page fields that were copied into the node. The single draft version, when present, is the working snapshot ahead of the live node and is visible only to its author and members with `MANAGE_LIBRARY`. Results are ordered by `updated_at` descending so draft autosaves and recently applied checkpoints appear before older history.