> ## 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-Upload fortsetzen

> Setzt den Upload von Chunks für einen vorhandenen Scan fort



## OpenAPI

````yaml /de/api-reference/openapi.json patch /start-scan/{transfer_id}
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:
  /start-scan/{transfer_id}:
    patch:
      tags:
        - Corgea-Scan starten
      summary: Scan-Upload fortsetzen
      description: Setzt den Upload von Chunks für einen vorhandenen Scan fort
      operationId: continueScanUpload
      parameters:
        - name: transfer_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Transfer-ID aus dem initialen Scan-Request
        - name: Upload-Offset
          in: header
          required: true
          schema:
            type: integer
          description: Aktueller Byte-Offset des Uploads
        - name: Upload-Length
          in: header
          required: true
          schema:
            type: integer
          description: Gesamtgröße der Datei in Byte
        - name: Upload-Name
          in: header
          required: true
          schema:
            type: string
          description: Name der hochgeladenen Datei
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - chunk_data
              properties:
                chunk_data:
                  type: string
                  format: binary
                  description: Nächster Daten-Chunk für den Scan
                project_name:
                  type: string
                branch:
                  type: string
                repo_url:
                  type: string
                sha:
                  type: string
                partial_scan:
                  type: boolean
                files_to_scan:
                  type: string
                  description: Kommagetrennte Liste der zu scannenden Dateien
                metadata:
                  type: string
                  description: >-
                    Vom Benutzer bereitgestellte Scan-Metadaten als
                    JSON-Objekt-String, z. B.
                    {"pipeline_url":"https://ci.example/run/123"}. Sie werden
                    bei jedem Chunk-Request validiert und nach Abschluss des
                    Uploads dem Scan zugeordnet. Der Wert muss ein JSON-Objekt
                    mit höchstens 16.384 Byte sein; andernfalls schlägt der
                    Request mit Status 400 fehl.
      responses:
        '200':
          description: Chunk erfolgreich hochgeladen
          headers:
            Upload-Offset:
              schema:
                type: integer
              description: Aktueller Upload-Offset nach diesem Chunk
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      transfer_id:
                        type: string
                        format: uuid
                      status:
                        type: string
                        example: success
                      message:
                        type: string
                        example: Chunk uploaded successfully.
                  - type: object
                    description: Wird nach Abschluss des Uploads zurückgegeben
                    properties:
                      scan_id:
                        type: string
                        format: uuid
                        example: 1a5afaa3-72ac-458f-a492-ac40ffc88e76
                      status:
                        type: string
                        example: success
                      message:
                        type: string
                        example: Chunk uploaded successfully.
        '400':
          description: Ungültiger Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: 'Invalid request: ''chunk_data'' file not found.'
                  internal_detail:
                    type: string
        '403':
          description: Zugriff verweigert
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Permission denied
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

````