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

# Mutate issues in batch

> Apply one discriminated batch mutation: status, start-review, flag, assignee, or tag. Mixed item-level failures return HTTP 200. Successful items are not rolled back.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json post /issues/batch
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/batch:
    post:
      tags:
        - Issues
      summary: Mutate issues in batch
      description: >-
        Apply one discriminated batch mutation: status, start-review, flag,
        assignee, or tag. Mixed item-level failures return HTTP 200. Successful
        items are not rolled back.
      operationId: mutate_issues_batch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - operation
                - issue_ids
              properties:
                operation:
                  type: string
                  enum:
                    - status
                    - start-review
                    - flag
                    - assignee
                    - tag
                issue_ids:
                  type: array
                  items:
                    type: string
                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'
                tag_id:
                  type: string
                attached:
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Batch issue mutation results
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      anyOf:
                        - oneOf:
                            - type: object
                              properties:
                                issue_id:
                                  type: string
                                ok:
                                  type: boolean
                                  const: true
                                project_id:
                                  type: string
                              required:
                                - issue_id
                                - ok
                                - project_id
                              additionalProperties: false
                            - type: object
                              properties:
                                issue_id:
                                  type: string
                                ok:
                                  type: boolean
                                  const: false
                                error:
                                  type: object
                                  properties:
                                    detail:
                                      type: string
                                    code:
                                      type: string
                                  required:
                                    - detail
                                  additionalProperties: false
                              required:
                                - issue_id
                                - ok
                                - error
                              additionalProperties: false
                        - oneOf:
                            - type: object
                              properties:
                                issue_id:
                                  type: string
                                ok:
                                  type: boolean
                                  const: true
                                project_id:
                                  type: string
                                status:
                                  type: string
                                  enum:
                                    - open
                                    - in_progress
                                    - resolved
                                    - dismissed
                                assignee_user_id:
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - issue_id
                                - ok
                                - project_id
                                - status
                                - assignee_user_id
                              additionalProperties: false
                            - type: object
                              properties:
                                issue_id:
                                  type: string
                                ok:
                                  type: boolean
                                  const: false
                                error:
                                  type: object
                                  properties:
                                    detail:
                                      type: string
                                    code:
                                      type: string
                                  required:
                                    - detail
                                  additionalProperties: false
                              required:
                                - issue_id
                                - ok
                                - error
                              additionalProperties: false
                  project_id:
                    type: string
                required:
                  - results
                additionalProperties: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````