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

# Finding-Status ändern

> Ändert ein zugängliches SAST-Finding. Erfordert `heeler.view_issue` und `heeler.change_issue_status`. status und einen nicht leeren comment mit Begründung angeben; Wiederöffnen ist von der Begründungsprüfung ausgenommen, erfordert aber einen Kommentar. False-positive- und Accepted-risk-Entscheidungen von Nichtadministratoren liefern 202, wenn das Unternehmen eine Genehmigung verlangt; das Finding bleibt bis zur Genehmigung unverändert. Unternehmensadministratoren umgehen die Genehmigung; Mengengrenzen und Schweregradschwellen für Massenaktionen gelten nicht. Unbekannte Felder werden abgelehnt.



## OpenAPI

````yaml /de/api-reference/openapi.json patch /issue/{issue_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
  - url: https://eu.corgea.app/api/v1
    description: EU-Produktionsserver
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /issue/{issue_id}:
    patch:
      tags:
        - Issues
      summary: Finding-Status ändern
      description: >-
        Ändert ein zugängliches SAST-Finding. Erfordert `heeler.view_issue` und
        `heeler.change_issue_status`. status und einen nicht leeren comment mit
        Begründung angeben; Wiederöffnen ist von der Begründungsprüfung
        ausgenommen, erfordert aber einen Kommentar. False-positive- und
        Accepted-risk-Entscheidungen von Nichtadministratoren liefern 202, wenn
        das Unternehmen eine Genehmigung verlangt; das Finding bleibt bis zur
        Genehmigung unverändert. Unternehmensadministratoren umgehen die
        Genehmigung; Mengengrenzen und Schweregradschwellen für Massenaktionen
        gelten nicht. Unbekannte Felder werden abgelehnt.
      operationId: updateIssueStatus
      parameters:
        - name: issue_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: ID des Issues
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IssueStatusRequest'
      responses:
        '200':
          description: Anfrage erfolgreich abgeschlossen
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IssueStatusResponse'
        '202':
          description: Genehmigung ausstehend; Finding-Status unverändert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IssueStatusResponse'
        '400':
          description: Ungültige Anfrage oder unzureichende Begründung
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            Finding vor dem Speichern geändert; aktualisieren und erneut
            versuchen
components:
  schemas:
    IssueStatusRequest:
      type: object
      properties:
        status:
          type: string
          enum:
            - open
            - fix_in_progress
            - fixed
            - false_positive
            - accepted_risk
            - duplicate
        comment:
          type: string
          minLength: 1
        expiry_date:
          type: string
          format: date-time
          nullable: true
          description: Optionales zukünftiges ISO-8601-Ablaufdatum für akzeptiertes Risiko.
      required:
        - status
        - comment
      additionalProperties: false
    IssueStatusResponse:
      type: object
      properties:
        status:
          type: string
          example: ok
        action:
          $ref: '#/components/schemas/DeTriageAction'
        issue:
          type: object
          properties:
            id:
              type: string
              format: uuid
            status:
              type: string
              enum:
                - open
                - fix_in_progress
                - fixed
                - false_positive
                - accepted_risk
                - duplicate
            status_comment:
              type: string
              nullable: true
            accepted_risk_expiry_date:
              type: string
              format: date-time
              nullable: true
    DeTriageAction:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - preview
            - pending_approval
            - applied
            - rejected
            - failed
        source:
          type: string
          enum:
            - api
            - cli
            - cxone
        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
  responses:
    Unauthorized:
      description: Ungültiges oder fehlendes Token
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Missing or invalid authorization header
    Forbidden:
      description: Zugriff verweigert oder Feature nicht verfügbar
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Permission denied
    NotFound:
      description: Ressource nicht gefunden
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Policy not found
  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.