Skip to main content
POST
Move a canvas draft

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

canvas_id
string<uuid>
required

Body

application/json
revision_id
string<uuid>
required
base_revision_id
string<uuid>
required

The draft revision the caller last saw.

Response

Successful Response

A canvas with its draft revision.

id
string<uuid>
required
kind
enum<string>
required
Available options:
dashboard,
page
title
string
required
visibility
enum<string>
required
Available options:
private,
organisation
owner_user_id
string<uuid>
required
is_owner
boolean
required
is_pinned
boolean
required

Whether the caller pinned the canvas.

language
enum<string>
required

The language of the draft revision.

Available options:
json,
html,
svg,
markdown
draft_revision_id
string | null
required
published_revision_id
string | null
required
source_conversation_id
string | null
required
source_artifact_id
string | null
required
cluster_id
string<uuid> | null
required

The cluster the dashboard belongs to, for the cluster's Metrics; null for none, and for one whose cluster is no longer a live cluster of the organisation, which is back in the library as a dashboard of no cluster. Only a member who holds clusters.read on that cluster sees the canvas. A canvas belongs to an application or to a cluster, never both.

application_id
string<uuid> | null
required

The application the dashboard belongs to; null for none. Only a member who may read that application sees the canvas.

created_at
string<date-time>
required
updated_at
string<date-time>
required
draft
CanvasRevision · object
required