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

# Preview Promotion

> Preview the exact binding swap and mint a short-lived one-use confirmation bound to its current version.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/databases/{databaseId}/restores/{restoreId}/promotion-preview
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/databases/{databaseId}/restores/{restoreId}/promotion-preview:
    post:
      tags:
        - databaseRestores
      summary: Preview Promotion
      description: >-
        Preview the exact binding swap and mint a short-lived one-use
        confirmation bound to its current version.
      operationId: databaseRestores.previewPromotion
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: databaseId
          in: path
          required: true
          schema:
            type: string
        - name: restoreId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                bindingName:
                  type: string
              required:
                - bindingName
              additionalProperties: false
      responses:
        '200':
          description: Exact promotion plan and confirmation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  bindingName:
                    type: string
                  currentDatabaseId:
                    type: string
                  targetDatabaseId:
                    type: string
                  bindingVersion:
                    type: integer
                  impact:
                    type: object
                    properties:
                      sourceRemainsAvailable:
                        type: boolean
                        enum:
                          - true
                      automaticDataMerge:
                        type: boolean
                        enum:
                          - false
                      connectionRestartRequired:
                        type: boolean
                    required:
                      - sourceRemainsAvailable
                      - automaticDataMerge
                      - connectionRestartRequired
                    additionalProperties: false
                  rollbackWindowSeconds:
                    type: integer
                  planHash:
                    type: string
                  confirmationToken:
                    type: string
                  expiresAt:
                    type: string
                    format: date-time
                required:
                  - bindingName
                  - currentDatabaseId
                  - targetDatabaseId
                  - bindingVersion
                  - impact
                  - rollbackWindowSeconds
                  - planHash
                  - confirmationToken
                  - expiresAt
                additionalProperties: false
        '404':
          description: No ready restore or binding.
        '409':
          description: The binding target already changed.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````