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

# Preview a workbook promotion

Validate promotion of the complete workbook and published dashboard to another deployment. The source slug is preserved so deployment-scoped dashboard links remain stable. Returns content hashes for optimistic concurrency; no preview is stored. Requires access to both deployments.


## OpenAPI

````yaml /api-reference/api.yaml post /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/promotion-previews
openapi: 3.1.0
info:
  title: Cube Platform API
  version: 1.0.0
  description: >-
    Programmatically manage Cube: deployments and everything scoped to them

    (environments, folders, reports, workbooks, notifications, workspace, and
    agents),

    plus account-level users, groups, policies, embedding, and AI settings.
    Data-model

    authoring, dev mode, branches, and uploads live under /build/api/v1 — same
    host and

    token, routed to the build pods.
servers:
  - url: https://{tenant}.cubecloud.dev
    description: Your tenant host. Replace the whole host if you use a custom domain.
    variables:
      tenant:
        default: your-tenant
        description: Your Cube tenant subdomain
security:
  - bearerAuth: []
tags:
  - name: Deployments
  - name: Deployment Creation
  - name: Environments
  - name: Env Variables
  - name: Regions
  - name: Data Model
  - name: Data Model Uploads
  - name: GitHub
  - name: GitHub Connection
  - name: dbt Sync
  - name: Databricks Metric View Publication
  - name: Databricks Metric View Integration
  - name: Folders
  - name: Reports
  - name: External Documents
  - name: Workbooks
  - name: Workbook Promotions
  - name: Dashboard Exports
  - name: Notifications
  - name: Workspace
  - name: Users
  - name: Users Admin
  - name: User Attributes
  - name: User Attribute Values
  - name: Tenant Settings
  - name: OAuth Integrations
  - name: User OAuth Tokens
  - name: OIDC Token Configs
  - name: App Theme
  - name: Embed
  - name: Embed Tenants
  - name: Dashboard Embed Access
  - name: Usage Analytics
  - name: OpenAPI Spec
paths:
  /api/v1/deployments/{deploymentId}/workbooks/{workbookId}/promotion-previews:
    post:
      tags:
        - Workbook Promotions
      summary: Preview a workbook promotion
      operationId: previewWorkbookPromotion
      parameters:
        - in: path
          name: deploymentId
          required: true
          schema:
            type: number
        - in: path
          name: workbookId
          required: true
          schema:
            type: number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreviewWorkbookPromotionInput'
        description: PreviewWorkbookPromotionInput
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkbookPromotionPreviewDto'
          description: ''
components:
  schemas:
    PreviewWorkbookPromotionInput:
      properties:
        targetDeploymentId:
          minimum: 1
          type: integer
        targetFolderId:
          oneOf:
            - minimum: 1
              type: integer
            - type: 'null'
      required:
        - targetDeploymentId
      type: object
    WorkbookPromotionPreviewDto:
      properties:
        destinationHash:
          oneOf:
            - type: string
            - type: 'null'
        destinationWasDiverged:
          type: boolean
        reportCount:
          type: integer
        sourceHash:
          type: string
        targetDeploymentId:
          type: integer
        targetWorkbookId:
          oneOf:
            - type: integer
            - type: 'null'
      required:
        - targetDeploymentId
        - destinationWasDiverged
        - reportCount
        - sourceHash
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Token authentication. Send `Authorization: Bearer <YOUR_TOKEN>`.'

````