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

# Bulk triage findings

> Preview or apply a rule-based status change to as many as 5,000 accessible SAST or SCA findings. Accepted-risk actions that meet the company's approval threshold return 202 and remain pending until a different company admin approves them.



## OpenAPI

````yaml /api-reference/openapi.json patch /triage/findings
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API for interacting with Corgea's scanning and vulnerability management
    features
servers:
  - url: https://www.corgea.app/api/v1
    description: Production server
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /triage/findings:
    patch:
      tags:
        - Triage
      summary: Bulk triage findings
      description: >-
        Preview or apply a rule-based status change to as many as 5,000
        accessible SAST or SCA findings. Accepted-risk actions that meet the
        company's approval threshold return 202 and remain pending until a
        different company admin approves them.
      operationId: bulkTriageFindings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkTriageRequest'
      responses:
        '200':
          description: Action previewed or applied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TriageActionResponse'
        '202':
          description: Action created and awaiting approval
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TriageActionResponse'
        '400':
          description: Invalid request or more than 5,000 findings matched
        '403':
          description: >-
            The token lacks permission to change one or more selected finding
            types
components:
  schemas:
    BulkTriageRequest:
      type: object
      required:
        - target_status
        - justification
        - rule
      additionalProperties: false
      properties:
        target_status:
          type: string
          enum:
            - open
            - fixed
            - false_positive
            - accepted_risk
            - duplicate
            - fix_in_progress
          description: >-
            fix_in_progress is available only when finding_types contains only
            sast.
        justification:
          type: string
          minLength: 1
        apply:
          type: boolean
          default: true
          description: Set to false to create a preview without changing findings.
        expiry_date:
          type: string
          format: date-time
          nullable: true
          description: Future expiry time for accepted_risk actions only.
        rule:
          $ref: '#/components/schemas/BulkTriageRule'
    TriageActionResponse:
      type: object
      properties:
        status:
          type: string
          example: ok
        action:
          $ref: '#/components/schemas/TriageAction'
    BulkTriageRule:
      type: object
      additionalProperties: false
      description: >-
        Select a scope with company_wide, project_ids, or team_ids. Filters use
        match to combine applicable criteria; CWE filters apply to SAST and CVE
        and reachability filters apply to SCA.
      properties:
        company_wide:
          type: boolean
          default: false
        project_ids:
          type: array
          uniqueItems: true
          items:
            type: integer
        team_ids:
          type: array
          uniqueItems: true
          items:
            type: integer
        finding_types:
          type: array
          minItems: 1
          default:
            - sast
            - sca
          items:
            type: string
            enum:
              - sast
              - sca
        cwes:
          type: array
          items:
            type: string
            example: CWE-79
        cves:
          type: array
          items:
            type: string
            example: CVE-2026-1000
        path_patterns:
          type: array
          items:
            type: string
            example: tests/**
        severities:
          type: array
          items:
            type: string
            enum:
              - LO
              - ME
              - HI
              - CR
              - LOW
              - MEDIUM
              - HIGH
              - CRITICAL
        reachability:
          type: string
          nullable: true
          enum:
            - 'true'
            - 'false'
            - unsure
        match:
          type: string
          enum:
            - all
            - any
          default: all
    TriageAction:
      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
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token (JWT) in the Authorization header

````