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

# Update

> Create and validate a new immutable version before activation. Existing recovery points keep their exact prior version.



## OpenAPI

````yaml /openapi.json patch /v1/orgs/{orgId}/backup-destinations/{destinationId}
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}/backup-destinations/{destinationId}:
    patch:
      tags:
        - backupDestinations
      summary: Update
      description: >-
        Create and validate a new immutable version before activation. Existing
        recovery points keep their exact prior version.
      operationId: backupDestinations.update
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: destinationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  pattern: ^[a-z][a-z0-9-]{1,61}$
                endpoint:
                  type: string
                  format: uri
                  description: HTTPS endpoint for compatible custom object storage.
                bucket:
                  type: string
                prefix:
                  type: string
                region:
                  type:
                    - string
                    - 'null'
                credentials:
                  type: object
                  properties:
                    accessKeyId:
                      type: string
                    secretAccessKey:
                      type: string
                    sessionToken:
                      type: string
                  required:
                    - accessKeyId
                    - secretAccessKey
                  additionalProperties: false
              required: []
              additionalProperties: false
      responses:
        '200':
          description: Updated destination.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{1,61}$
                  kind:
                    type: string
                    enum:
                      - custom_object_storage
                  endpoint:
                    type: string
                    format: uri
                  bucket:
                    type: string
                  prefix:
                    type: string
                  region:
                    type:
                      - string
                      - 'null'
                  version:
                    type: integer
                    description: Active immutable configuration version.
                  status:
                    type: string
                    enum:
                      - pending
                      - ready
                      - failed
                  lastTestedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - kind
                  - endpoint
                  - bucket
                  - prefix
                  - region
                  - version
                  - status
                  - lastTestedAt
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '404':
          description: No such destination in this organization.
        '422':
          description: Invalid endpoint or credentials.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````