> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enforster.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Update Issues

> Bulk update multiple issues with severity and/or false positive status.

Args:
    request: Bulk update request with issue IDs and update parameters
    user: Authenticated user from Clerk
    
Returns:
    Bulk update response with success/failure counts and updated issues
    
Raises:
    400: Bad request (invalid issue IDs or parameters)
    401: Unauthorized (invalid token)
    403: Forbidden (no organization found or issues not owned by user's org)
    500: Internal server error



## OpenAPI

````yaml api-reference/openapi.json patch /api/issues/bulk
openapi: 3.1.0
info:
  title: Enforster AI API
  description: Enforster AI API for code analysis and security scanning.
  version: 1.8.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/issues/bulk:
    patch:
      summary: Bulk Update Issues
      description: |-
        Bulk update multiple issues with severity and/or false positive status.

        Args:
            request: Bulk update request with issue IDs and update parameters
            user: Authenticated user from Clerk
            
        Returns:
            Bulk update response with success/failure counts and updated issues
            
        Raises:
            400: Bad request (invalid issue IDs or parameters)
            401: Unauthorized (invalid token)
            403: Forbidden (no organization found or issues not owned by user's org)
            500: Internal server error
      operationId: bulk_update_issues_api_issues_bulk_patch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUpdateIssuesRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUpdateIssuesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    BulkUpdateIssuesRequest:
      properties:
        issue_ids:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Issue Ids
          description: List of issue IDs to update (max 100)
        severity:
          anyOf:
            - type: string
            - type: 'null'
          title: Severity
          description: New severity level (critical, high, medium, low, info)
        false_positive:
          anyOf:
            - type: boolean
            - type: 'null'
          title: False Positive
          description: False positive status (True/False)
        exploitable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Exploitable
          description: Exploitable status (True/False)
        notes:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Notes
          description: Optional notes to add to all updated issues
      type: object
      required:
        - issue_ids
      title: BulkUpdateIssuesRequest
    BulkUpdateIssuesResponse:
      properties:
        updated_count:
          type: integer
          title: Updated Count
        failed_count:
          type: integer
          title: Failed Count
        failed_issues:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
          title: Failed Issues
        updated_issues:
          items:
            $ref: '#/components/schemas/IssueResponse'
          type: array
          title: Updated Issues
      type: object
      required:
        - updated_count
        - failed_count
        - failed_issues
        - updated_issues
      title: BulkUpdateIssuesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IssueResponse:
      properties:
        id:
          type: string
          title: Id
        scan_id:
          type: string
          title: Scan Id
        file_path:
          type: string
          title: File Path
        line_number:
          type: integer
          title: Line Number
        column_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: Column Start
        column_end:
          anyOf:
            - type: integer
            - type: 'null'
          title: Column End
        category:
          type: string
          title: Category
        severity:
          type: string
          title: Severity
        confidence:
          type: number
          title: Confidence
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        explanation:
          anyOf:
            - type: string
            - type: 'null'
          title: Explanation
        code_snippet:
          anyOf:
            - type: string
            - type: 'null'
          title: Code Snippet
        context_before:
          anyOf:
            - type: string
            - type: 'null'
          title: Context Before
        context_after:
          anyOf:
            - type: string
            - type: 'null'
          title: Context After
        remediation:
          anyOf:
            - type: string
            - type: 'null'
          title: Remediation
        remediation_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Remediation Code
        cwe_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cwe Ids
        owasp_category:
          anyOf:
            - type: string
            - type: 'null'
          title: Owasp Category
        cvss_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Cvss Score
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        model_used:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Used
        false_positive:
          type: boolean
          title: False Positive
          default: false
        exploitable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Exploitable
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        repo_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Repo Name
        scan_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Scan Status
        scan_created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Scan Created At
      type: object
      required:
        - id
        - scan_id
        - file_path
        - line_number
        - category
        - severity
        - confidence
        - title
        - description
      title: IssueResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Use an API key in the X-API-Key header.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk JWT bearer token.

````