Skip to main content
POST
Add a chart to a dashboard

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

dashboardId
string<cuid2>
required

Dashboard identifier.

Body

application/json
chartId
string<cuid2>
required

A chart in the dashboard's workspace. A chart appears at most once per dashboard.

layout
object

Where to put the chart. Without one it lands in the first open slot at its chart type's default size.

Response

The new widget

data
object
required

One chart's placement on the dashboard. chart is exactly what reading the chart returns.