Storyden
Nodes

Node Version Draft Get

Get the node's single working draft checkpoint. This is a stable alias for the draft version of a node. It allows clients to read "the draft" without listing versions and inspecting status values. If the node has no draft, or the draft is not visible to the caller, this operation returns not found. The draft is visible only to its author and members with `MANAGE_LIBRARY`.

GET
/nodes/{node_slug}/versions/draft

Get the node's single working draft checkpoint.

This is a stable alias for the draft version of a node. It allows clients to read "the draft" without listing versions and inspecting status values. If the node has no draft, or the draft is not visible to the caller, this operation returns not found.

The draft is visible only to its author and members with MANAGE_LIBRARY.

Authorization

cookiestoryden-session<token>

Path Parameters

node_slug*string

Unique node Slug.

Formatxid

Response Body

Node version retrieved.

application/json
  1. 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*Identifier

A unique identifier for this resource.

Formatxid
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
node_id*Identifier

A unique identifier for this resource.

Formatxid
author*

A minimal reference to an account.

status*NodeVersionStatus
Value in"draft""applied"
previous?

Previous applied version for historical comparison. Only present when retrieving an individual applied version and an earlier applied version exists.

name*NodeName
slug*NodeSlug

A URL-safe slug for uniquely identifying resources.

description?string|null
content?string|null
properties*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.

Example Request
curl -X GET 'https://example.com/api/nodes/string/versions/draft'
Example Response
{  "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": {}}