> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upsolve.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Charts to Dashboard

> Deep-copies one or more charts into a target dashboard. Each source chart is duplicated (new ID) and appended to the bottom of the dashboard layout. Authenticate with a tenant JWT or an API key.



## OpenAPI

````yaml post /v1/api/dashboard/add-charts
openapi: 3.1.0
info:
  title: Upsolve API
  version: 1.4.1
servers:
  - url: https://api.upsolve.ai
security: []
tags: []
paths:
  /v1/api/dashboard/add-charts:
    post:
      summary: Add charts to a dashboard
      description: >-
        Deep-copies one or more charts into a target dashboard. Each source
        chart is duplicated (new ID) and appended to the bottom of the dashboard
        layout. Authenticate with a tenant JWT or an API key.
      operationId: PostV1ApiDashboardAddCharts
      requestBody:
        description: POST /v1/api/dashboard/add-charts Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                apiKey:
                  description: >-
                    Upsolve API key, generated under Account → Developer
                    settings in the Upsolve Hub. Keys are user-scoped: pass
                    organizationId alongside the key to select which org to act
                    on.
                  type: string
                  minLength: 1
                organizationId:
                  type: string
                  description: >-
                    The ID of the organization. Required when using Supabase JWT
                    authentication.
                connectionId:
                  type: string
                  description: The ID of the connection a guest has access to
                targetDashboardId:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                  description: ID of the dashboard to add charts to
                charts:
                  minItems: 1
                  type: array
                  items:
                    type: object
                    properties:
                      chartId:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                        description: ID of the chart to copy into the target dashboard
                      chartVersion:
                        description: Version of the chart to copy. Defaults to latest.
                        type: number
                    required:
                      - chartId
                  description: >-
                    Charts to add to the target dashboard. Charts are
                    deep-copied.
              required:
                - targetDashboardId
                - charts
        required: true
      responses:
        '200':
          description: POST /v1/api/dashboard/add-charts Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  data:
                    type: object
                    properties:
                      message:
                        type: string
                      addedChartIds:
                        type: array
                        items:
                          type: string
                        description: >-
                          IDs of the newly created chart copies in the target
                          dashboard
                      dashboardId:
                        type: string
                        description: ID of the updated dashboard
                    required:
                      - message
                      - addedChartIds
                      - dashboardId
                    additionalProperties: false
                required:
                  - status
                  - data
                additionalProperties: false
        '400':
          description: POST /v1/api/dashboard/add-charts Negative response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      code:
                        type: string
                      details:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties: {}
                    required:
                      - message
                    additionalProperties: false
                required:
                  - status
                  - error
                additionalProperties: false
      security:
        - APIKEY_2: []
components:
  securitySchemes:
    APIKEY_2:
      type: apiKey
      in: header
      name: authorization

````