Skip to main content
POST
/
v1
/
api
/
dashboard
/
add-charts
Add charts to a dashboard
curl --request POST \
  --url https://api.upsolve.ai/v1/api/dashboard/add-charts \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '
{
  "targetDashboardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "charts": [
    {
      "chartId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "chartVersion": 0
    }
  ],
  "apiKey": "<string>",
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "connectionId": "<string>"
}
'
{
  "status": "<string>",
  "data": {
    "message": "<string>",
    "addedChartIds": [
      "<string>"
    ],
    "dashboardId": "<string>"
  }
}

Authorizations

authorization
string
header
required

Body

application/json

POST /v1/api/dashboard/add-charts Request body

targetDashboardId
string<uuid>
required

ID of the dashboard to add charts to

charts
object[]
required

Charts to add to the target dashboard. Charts are deep-copied.

Minimum array length: 1
apiKey
string

Upsolve API key, generated in the Deploy tab of the Upsolve Hub.

Minimum string length: 1
organizationId
string<uuid>

The ID of the organization. Required when using Supabase JWT authentication.

connectionId
string

The ID of the connection a guest has access to

Response

POST /v1/api/dashboard/add-charts Positive response

status
string
required
Allowed value: "success"
data
object
required