Skip to main content
PATCH
Rename or share a canvas

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
title
string | null
Required string length: 1 - 200
visibility
enum<string> | null
Available options:
private,
organisation,
null
cluster_id
string<uuid> | null

Ties a dashboard to a cluster, or null to untie it; absent leaves it as it is. Owner only, and only for kind dashboard. A dashboard that belongs to an application is untied from it in the same change (application_id null) or the change is refused. A cluster the caller may not read answers 404 cluster_not_found.

application_id
string<uuid> | null

Ties a dashboard to an application, or null to untie it; absent leaves it as it is. Owner only, and only for kind dashboard. An application the caller may not read answers 404 application_not_found.

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