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

# ImportDashboardFromClassic

> Converts classic dashboard JSON to a standard Dashboard, creating it or
updating an existing one in place when update_if_exists is set.



## OpenAPI

````yaml openapi/api_v1_config_openapi3_DOCUMENTATION_ONLY.json POST /api/v1/config/dashboards:importFromClassic
openapi: 3.0.3
info:
  description: >

    The Config API provides standard HTTP/JSON REST endpoints for creating,
    reading,

    updating, deleting, and listing configurable Chronosphere resources.


    Use this link to download the raw Swagger specification:

    <a href="/api/v1/config/swagger.json">/api/v1/config/swagger.json</a>
  title: Config V1 API
  version: v1
servers:
  - url: https://{tenant}.chronosphere.io
    variables:
      tenant:
        default: tenant
        description: tenant ID assigned by the service provider
security:
  - ApiKeyAuth: []
tags:
  - name: ConfigV1
paths:
  /api/v1/config/dashboards:importFromClassic:
    post:
      tags:
        - ConfigV1
      description: |-
        Converts classic dashboard JSON to a standard Dashboard, creating it or
        updating an existing one in place when update_if_exists is set.
      operationId: ImportDashboardFromClassic
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/configv1ImportDashboardFromClassicRequest'
        description: >-
          Converts classic dashboard JSON into a standard Dashboard, creating it
          (or

          updating an existing one when update_if_exists is set).
        required: true
        x-originalParamName: body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/configv1ImportDashboardFromClassicResponse
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: An unexpected error response.
components:
  schemas:
    configv1ImportDashboardFromClassicRequest:
      description: >-
        Converts classic dashboard JSON into a standard Dashboard, creating it
        (or

        updating an existing one when update_if_exists is set).
      properties:
        classic_dashboard_json:
          description: Required. Classic dashboard JSON to convert.
          type: string
        collection_slug:
          description: Required slug of the collection the new dashboard will belong to.
          type: string
        dry_run:
          description: >-
            When true, converts and validates the dashboard without persisting
            it.
          type: boolean
        name:
          description: >-
            Optional name for the new dashboard. Defaults to the classic
            dashboard's

            `title` when unset.
          type: string
        slug:
          description: >-
            Optional slug for the new dashboard. When unset, a slug is generated
            from

            the name (same behavior as CreateDashboard). Required when

            update_if_exists is set.
          type: string
        update_if_exists:
          description: >-
            When true, updates an existing dashboard with the given slug instead
            of

            failing, replacing it entirely (clearing fields such as labels that
            the

            request does not carry).
          type: boolean
      type: object
    configv1ImportDashboardFromClassicResponse:
      properties:
        dashboard:
          allOf:
            - $ref: '#/components/schemas/configv1Dashboard'
          description: >-
            The imported dashboard. Populated even when dry_run is set, as a
            preview

            of what would be created.
        unsupported_features:
          description: >-
            Classic dashboard features that were dropped, approximated, or
            otherwise

            noteworthy during conversion, de-duplicated one entry per feature.
          items:
            $ref: >-
              #/components/schemas/ImportDashboardFromClassicResponseUnsupportedFeature
          type: array
      type: object
    apiError:
      properties:
        message:
          description: An error message describing what went wrong.
          type: string
      type: object
    configv1Dashboard:
      properties:
        collection:
          allOf:
            - $ref: '#/components/schemas/configv1CollectionReference'
          description: >-
            Collection that the dashboard belongs to. Required if
            `collection_slug` is not

            set.
        collection_slug:
          description: Optional. Slug of the collection the dashboard belongs to.
          type: string
        created_at:
          description: >-
            Timestamp of when the Dashboard was created. Cannot be set by
            clients.
          format: date-time
          readOnly: true
          type: string
        dashboard_json:
          description: Raw JSON representation that defines the structure of the dashboard.
          type: string
        labels:
          additionalProperties:
            type: string
          description: Optional. Defines tags that add metadata about the dashboard.
          type: object
        name:
          description: >-
            The name of the Dashboard. You can modify this value after the
            Dashboard is created.
          type: string
        slug:
          description: >-
            The unique identifier of the Dashboard. If a `slug` isn't provided,
            one is generated based on the `name` field. You can't modify this
            field after the Dashboard is created.
          type: string
        updated_at:
          description: >-
            Timestamp of when the Dashboard was last updated. Cannot be set by
            clients.
          format: date-time
          readOnly: true
          type: string
      required:
        - name
      type: object
    ImportDashboardFromClassicResponseUnsupportedFeature:
      properties:
        detail:
          description: |-
            Free-form detail specific to this occurrence; not stable, do not key
            logic on it.
          type: string
        kind:
          description: |-
            Stable identifier for the kind of feature (e.g. "unknown-variable"),
            safe to key UI copy on.
          type: string
        level:
          allOf:
            - $ref: '#/components/schemas/UnsupportedFeatureLevel'
          description: |-
            Whether the feature was fully dropped or only approximated during
            conversion.
        message:
          type: string
        occurrences:
          description: Total occurrences de-duplicated into this entry.
          format: int32
          type: integer
        panel_keys:
          description: |-
            Panel keys this feature was observed on, in first-seen order. Empty
            for dashboard-level features.
          items:
            type: string
          type: array
      type: object
    configv1CollectionReference:
      properties:
        slug:
          type: string
        type:
          $ref: '#/components/schemas/configv1CollectionReferenceType'
      type: object
    UnsupportedFeatureLevel:
      enum:
        - LEVEL_SUPPORTED
        - LEVEL_UNSUPPORTED
      type: string
    configv1CollectionReferenceType:
      enum:
        - SIMPLE
        - SERVICE
      title: Type values must match entitiespb.Collection.CollectionType.
      type: string
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````