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

# 問題の一括トリアージ

> アクセス可能な最大5,000件のSASTまたはSCAの問題に対して、ルールに基づくステータス変更をプレビューまたは適用します。企業の承認しきい値に達した許容リスクのアクションは202を返し、別の企業管理者が承認するまで承認待ちになります。



## OpenAPI

````yaml /ja/api-reference/openapi.json patch /triage/findings
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: Corgeaのスキャン機能および脆弱性管理機能を操作するためのAPI
servers:
  - url: https://www.corgea.app/api/v1
    description: 本番サーバー
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /triage/findings:
    patch:
      tags:
        - トリアージ
      summary: 問題の一括トリアージ
      description: >-
        アクセス可能な最大5,000件のSASTまたはSCAの問題に対して、ルールに基づくステータス変更をプレビューまたは適用します。企業の承認しきい値に達した許容リスクのアクションは202を返し、別の企業管理者が承認するまで承認待ちになります。
      operationId: JaBulkTriageFindings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JaBulkTriageRequest'
      responses:
        '200':
          description: アクションをプレビューまたは適用しました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JaTriageActionResponse'
        '202':
          description: アクションを作成しました。承認待ちです
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JaTriageActionResponse'
        '400':
          description: 無効なリクエスト、または5,000件を超える問題が一致しました
        '403':
          description: トークンに、選択した1つ以上の問題種別のステータスを変更する権限がありません
components:
  schemas:
    JaBulkTriageRequest:
      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 は finding_types に sast のみが含まれる場合に使用できます。
        justification:
          type: string
          minLength: 1
        apply:
          type: boolean
          default: true
          description: falseに設定すると、問題を変更せずにプレビューを作成します。
        expiry_date:
          type: string
          format: date-time
          nullable: true
          description: accepted_riskアクションにのみ指定できる未来の有効期限です。
        rule:
          $ref: '#/components/schemas/JaBulkTriageRule'
    JaTriageActionResponse:
      type: object
      properties:
        status:
          type: string
          example: ok
        action:
          $ref: '#/components/schemas/JaTriageAction'
    JaBulkTriageRule:
      type: object
      additionalProperties: false
      description: >-
        company_wide、project_ids、team_idsのいずれかで対象範囲を指定します。フィルターはmatchで条件を組み合わせます。CWEフィルターはSASTに、CVEと到達可能性のフィルターは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
    JaTriageAction:
      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キー
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorizationヘッダーで使用するOAuth2アクセストークン（JWT）

````