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

# Patch issue

> Apply exactly one scalar mutation: status (with optional dismissal fields), flagged, or user_id assignee. Empty, mixed, or incompatible bodies are rejected before any write. start-review stays on its dedicated route.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json patch /issues/{issue_id}
openapi: 3.1.0
info:
  title: Lemma Platform API
  description: Lemma Platform HTTP API for AI observability and workspace operations.
  version: 0.1.0
servers:
  - url: https://api.uselemma.ai
    description: Lemma production API
security:
  - bearerAuth: []
paths:
  /issues/{issue_id}:
    patch:
      tags:
        - Issues
      summary: Patch issue
      description: >-
        Apply exactly one scalar mutation: status (with optional dismissal
        fields), flagged, or user_id assignee. Empty, mixed, or incompatible
        bodies are rejected before any write. start-review stays on its
        dedicated route.
      operationId: patch_issue
      parameters:
        - name: issue_id
          in: path
          required: true
          description: Issue ID.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                status:
                  type: string
                  enum:
                    - open
                    - in_progress
                    - resolved
                    - dismissed
                dismissal_reason:
                  type: string
                  enum:
                    - False positive
                    - Working as intended
                    - Test or synthetic traffic
                    - Acceptable edge case
                    - Known limitation
                    - Out of scope
                  description: >-
                    Accepted values: False positive, Working as intended, Test
                    or synthetic traffic, Acceptable edge case, Known
                    limitation, Out of scope
                dismissal_detail:
                  type: string
                flagged:
                  type: boolean
                user_id:
                  type:
                    - string
                    - 'null'
              additionalProperties: false
      responses:
        '204':
          description: Issue updated
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    enum:
                      - issue_terminal_conflict
                      - issue_concurrent_conflict
                required:
                  - detail
                  - code
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````