Skip to main content
POST
Duplicate a chart

Authorizations

next-auth.session-token
string
cookie
required

NextAuth session JWT cookie. Development: often next-auth.session-token. Production (HTTPS): often __Secure-next-auth.session-token. Send the cookie your browser receives after sign-in.

Path Parameters

chartId
string<cuid2>
required

Chart identifier.

Body

application/json
name
string

Name for the copy, unique within the workspace. Without one the copy is named " (copy)", then "(copy 2)" and so on.

Required string length: 1 - 255
dashboardId
string<cuid2>

Also put the copy on this dashboard, in the same transaction: if placing it fails, no copy is left behind. Must be in the chart's workspace.

layout
object

Where to put the copy on dashboardId. Without one, the first open slot.

Response

The copy

data
object
required

A chart: one saved visualisation of one Feedback Dataset. It belongs to a workspace and can sit on any number of dashboards — dashboards lists them, so a caller can see what an edit or a delete would affect.