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

# Scan hochladen

> Lädt einen abgeschlossenen Scan-Report aus CLI-Tools hoch. Dieser Endpoint empfängt vorab generierte Scan-Ergebnisse von Semgrep, Snyk, Checkmarx, CodeQL und Fortify und integriert sie in das System.



## OpenAPI

````yaml /de/api-reference/openapi.json post /scan-upload
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
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /scan-upload:
    post:
      tags:
        - Uploading 3rd Party Scan
      summary: Scan hochladen
      description: >-
        Lädt einen abgeschlossenen Scan-Report aus CLI-Tools hoch. Dieser
        Endpoint empfängt vorab generierte Scan-Ergebnisse von Semgrep, Snyk,
        Checkmarx, CodeQL und Fortify und integriert sie in das System.
      operationId: scanUpload
      parameters:
        - name: run_id
          in: query
          required: true
          schema:
            type: string
          description: ID des dem Scan-Report zugeordneten Laufs
        - name: engine
          in: query
          required: true
          schema:
            type: string
            enum:
              - checkmarx
              - codeql
              - fortify
              - semgrep
              - snyk
          description: Für den Scan verwendete Engine
        - name: project
          in: query
          required: true
          schema:
            type: string
          description: Name des Projekts
        - name: repo_data
          in: query
          required: false
          schema:
            type: string
          description: >-
            Base64-codierter JSON-String mit Repository-Informationen
            (branch_name, integration_url usw.)
      requestBody:
        required: true
        description: >-
          Inhalt des Scan-Reports als UTF-8-Text (in der Regel im SARIF- oder
          JSON-Format)
        content:
          text/plain:
            schema:
              type: string
      responses:
        '200':
          description: Scan-Report erfolgreich hochgeladen
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
        '400':
          description: Ungültiger Request oder Inhalt
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: invalid content
components:
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API-Key für die Authentifizierung
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````