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

# Update Issue Status

> Update the status of a specific issue (mark as false positive, etc.).

Args:
    issue_id: Issue ID to update
    request: Update request with false_positive status and optional notes
    user: Authenticated user from Clerk
    
Returns:
    Updated issue details
    
Raises:
    400: Bad request (invalid issue ID format or invalid status)
    401: Unauthorized (invalid token)
    403: Forbidden (issue not owned by user's org)
    404: Not found (issue not found)
    500: Internal server error



## OpenAPI

````yaml api-reference/openapi.json patch /api/issues/{issue_id}
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/{issue_id}:
    patch:
      summary: Update Issue Status
      description: |-
        Update the status of a specific issue (mark as false positive, etc.).

        Args:
            issue_id: Issue ID to update
            request: Update request with false_positive status and optional notes
            user: Authenticated user from Clerk
            
        Returns:
            Updated issue details
            
        Raises:
            400: Bad request (invalid issue ID format or invalid status)
            401: Unauthorized (invalid token)
            403: Forbidden (issue not owned by user's org)
            404: Not found (issue not found)
            500: Internal server error
      operationId: update_issue_status_api_issues__issue_id__patch
      parameters:
        - name: issue_id
          in: path
          required: true
          schema:
            type: string
            title: Issue Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateIssueStatusRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IssueResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    UpdateIssueStatusRequest:
      properties:
        false_positive:
          anyOf:
            - type: boolean
            - type: 'null'
          title: False Positive
          description: True if issue is a false positive, False otherwise
        exploitable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Exploitable
          description: True if issue is exploitable, False otherwise
        notes:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Notes
          description: Optional notes about the issue
      type: object
      title: UpdateIssueStatusRequest
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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.

````