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

# Remediate

> Apply exactly the previously previewed remediation after an owner explicitly confirms it. The token is rejected if evidence or target state changed.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/databases/{databaseId}/advisor/findings/{findingId}/remediation
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}/advisor/findings/{findingId}/remediation:
    post:
      tags:
        - advisor
      summary: Remediate
      description: >-
        Apply exactly the previously previewed remediation after an owner
        explicitly confirms it. The token is rejected if evidence or target
        state changed.
      operationId: advisor.remediate
      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: findingId
          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
                confirmationToken:
                  type: string
              required:
                - confirmed
                - confirmationToken
              additionalProperties: false
      responses:
        '202':
          description: Remediation accepted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  remediationId:
                    type: string
                  status:
                    type: string
                    enum:
                      - queued
                      - running
                required:
                  - remediationId
                  - status
        '404':
          description: No remediable finding for this database.
        '409':
          description: Evidence or target state changed after preview.
        '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

````