> ## 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.

# Promote

> Explicitly promote a verified restored database by swapping the selected application binding. The source remains available until separately deleted.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/databases/{databaseId}/restores/{restoreId}/promote
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}/promote:
    post:
      tags:
        - databaseRestores
      summary: Promote
      description: >-
        Explicitly promote a verified restored database by swapping the selected
        application binding. The source remains available until separately
        deleted.
      operationId: databaseRestores.promote
      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:
                confirmed:
                  type: boolean
                  enum:
                    - true
                  description: >-
                    Explicit confirmation from the owner-facing confirmation
                    dialog.
                confirmationToken:
                  type: string
                  description: Short-lived token bound to this exact action and target.
                bindingName:
                  type: string
              required:
                - confirmed
                - confirmationToken
                - bindingName
              additionalProperties: false
      responses:
        '200':
          description: Binding promoted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  sourceDatabaseId:
                    type: string
                  targetDatabaseId:
                    type:
                      - string
                      - 'null'
                  status:
                    type: string
                    enum:
                      - queued
                      - restoring
                      - verifying
                      - ready
                      - failed
                      - promoted
                  source:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - current
                          - backup
                          - point_in_time
                      backupId:
                        type: string
                      pointInTime:
                        type: string
                        format: date-time
                    required:
                      - kind
                    additionalProperties: false
                  progressPercent:
                    type: integer
                  error:
                    type:
                      - string
                      - 'null'
                  createdAt:
                    type: string
                    format: date-time
                  completedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                required:
                  - id
                  - sourceDatabaseId
                  - targetDatabaseId
                  - status
                  - source
                  - progressPercent
                  - error
                  - createdAt
                  - completedAt
        '404':
          description: No ready restore or binding.
        '409':
          description: Binding changed after confirmation was issued.
        '422':
          description: Confirmation is invalid or expired.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````