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

# Triage-Anfrage genehmigen

> Jeder sieht eigene Anfragen. Prüfberechtigte mit der Berechtigung Can approve or reject triage requests (`heeler.approve_triage_request`) sehen auch andere Anfragen; bei Projektzugriffskontrolle benötigen sie Zugriff auf jedes Projekt. Nicht sichtbare Anfragen liefern 404. Prüfer müssen sich vom Antragsteller unterscheiden und die Berechtigung Can approve or reject triage requests, Statusänderungsrechte für jeden Befundtyp sowie Zugriff auf jedes Projekt der Anfrage haben. Ein optionaler comment mit bis zu 10.000 Zeichen geht an den Antragsteller. Die Genehmigung gilt auch nach zwischenzeitlichen Triage-Änderungen; inzwischen behobene oder gelöschte Befunde werden übersprungen. Bei 409 vor einem neuen Versuch die Anfrage erneut abrufen.



## OpenAPI

````yaml /de/api-reference/openapi.json post /triage/approvals/{action_id}/approve
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API für die Interaktion mit den Scan- und
    Schwachstellenmanagement-Funktionen von Corgea
servers:
  - url: https://www.corgea.app/api/v1
    description: Produktionsserver
  - url: https://eu.corgea.app/api/v1
    description: EU-Produktionsserver
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /triage/approvals/{action_id}/approve:
    post:
      tags:
        - Triage
      summary: Triage-Anfrage genehmigen
      description: >-
        Jeder sieht eigene Anfragen. Prüfberechtigte mit der Berechtigung Can
        approve or reject triage requests (`heeler.approve_triage_request`)
        sehen auch andere Anfragen; bei Projektzugriffskontrolle benötigen sie
        Zugriff auf jedes Projekt. Nicht sichtbare Anfragen liefern 404. Prüfer
        müssen sich vom Antragsteller unterscheiden und die Berechtigung Can
        approve or reject triage requests, Statusänderungsrechte für jeden
        Befundtyp sowie Zugriff auf jedes Projekt der Anfrage haben. Ein
        optionaler comment mit bis zu 10.000 Zeichen geht an den Antragsteller.
        Die Genehmigung gilt auch nach zwischenzeitlichen Triage-Änderungen;
        inzwischen behobene oder gelöschte Befunde werden übersprungen. Bei 409
        vor einem neuen Versuch die Anfrage erneut abrufen.
      operationId: approveTriageApproval
      parameters:
        - name: action_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                comment:
                  type: string
                  maxLength: 10000
      responses:
        '200':
          description: Erfolg
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - ok
                  approval:
                    $ref: '#/components/schemas/TriageApproval'
        '400':
          description: Ungültige Anfrage
        '401':
          description: Token fehlt oder ist ungültig
        '403':
          description: Berechtigung oder Planzugriff fehlt
        '404':
          description: Anfrage nicht gefunden oder nicht zugänglich
        '405':
          description: HTTP-Methode nicht unterstützt
        '409':
          description: Anfrage nicht mehr ausstehend oder wird gerade geprüft
components:
  schemas:
    TriageApproval:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
        source:
          type: string
        target_status:
          type: string
        justification:
          type: string
        accepted_risk_expiry_date:
          type: string
          format: date-time
          nullable: true
        rule:
          type: object
        source_metadata:
          type: object
        requires_approval:
          type: boolean
        requested_by:
          type: integer
          nullable: true
        approved_by:
          type: integer
          nullable: true
        rejected_by:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        reviewed_at:
          type: string
          format: date-time
          nullable: true
        applied_at:
          type: string
          format: date-time
          nullable: true
        counts:
          type: object
          properties:
            matched:
              type: integer
            unmatched:
              type: integer
            ambiguous:
              type: integer
            applied:
              type: integer
            conflicts:
              type: integer
        decision_label:
          type: string
        requester:
          type: object
          properties:
            id:
              type: integer
              nullable: true
            name:
              type: string
              nullable: true
        review_comment:
          type: string
          nullable: true
        finding_total:
          type: integer
        finding_previews:
          type: array
          maxItems: 3
          items:
            type: object
            properties:
              kind:
                type: string
                enum:
                  - sast
                  - sca
              id:
                type: string
              title:
                type: string
              severity:
                type: string
              location:
                type: string
        project_names:
          type: array
          items:
            type: string
        skip_count:
          type: integer
        closed_by_rescan:
          type: boolean
        can_review:
          type: boolean
        is_requester:
          type: boolean
        suggestion:
          type: object
          nullable: true
        investigation:
          type: object
          nullable: true
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: >-
        API-Key für die Authentifizierung API-Tokens inaktiver Benutzer werden
        abgelehnt.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.