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

# Bulk update issues

> Updates status, priority, or assignment for multiple issues. Returns updated issues with assigned user information. User must be a valid organization member and not banned when assigning.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/avido/openapi.documented.yml patch /v0/issues
openapi: 3.1.1
info:
  title: Avido API
  description: >-
    Avido's API for LLM usage events, tool calls, trace management, webhook
    validation, and more. See each endpoint's request/response schema for
    details.
  version: 0.1.0
  contact:
    name: Avido Support
    email: support@avidoai.com
    url: https://avidoai.com/support
servers:
  - url: https://api.avidoai.com
    description: Production API
security:
  - ApiKey: []
    ApplicationId: []
paths:
  /v0/issues:
    patch:
      tags:
        - Issues
      summary: Bulk update issues
      description: >-
        Updates status, priority, or assignment for multiple issues. Returns
        updated issues with assigned user information. User must be a valid
        organization member and not banned when assigning.
      operationId: bulkUpdateIssues
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUpdateIssuesRequest'
            examples:
              updateStatus:
                summary: Update status of multiple issues
                value:
                  issueIds:
                    - 123e4567-e89b-12d3-a456-426614174000
                    - 223e4567-e89b-12d3-a456-426614174001
                  status: RESOLVED
              bulkAssign:
                summary: Assign multiple issues to user
                value:
                  issueIds:
                    - 123e4567-e89b-12d3-a456-426614174000
                    - 223e4567-e89b-12d3-a456-426614174001
                  assignedTo: user_789012
                  priority: HIGH
              unassignAll:
                summary: Unassign all issues
                value:
                  issueIds:
                    - 123e4567-e89b-12d3-a456-426614174000
                    - 223e4567-e89b-12d3-a456-426614174001
                  assignedTo: null
      responses:
        '200':
          description: Issues updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUpdateIssuesResponse'
              examples:
                success:
                  summary: Updated issues with assigned user info
                  value:
                    data:
                      - id: 123e4567-e89b-12d3-a456-426614174000
                        orgId: org_123456
                        title: Response quality degradation
                        status: RESOLVED
                        source: TEST
                        priority: HIGH
                        type: BUG
                        assignedTo: user_789012
                        assignedUser:
                          id: user_789012
                          name: John Doe
                          email: john@example.com
                          image: https://example.com/avatar.jpg
                        applicationId: 456e7890-e89b-12d3-a456-426614174000
                        createdAt: '2024-01-05T12:34:56.789Z'
                        modifiedAt: '2024-01-05T14:22:10.123Z'
                      - id: 223e4567-e89b-12d3-a456-426614174001
                        orgId: org_123456
                        title: API error
                        status: RESOLVED
                        source: MONITORING
                        priority: HIGH
                        type: BUG
                        assignedTo: user_789012
                        assignedUser:
                          id: user_789012
                          name: John Doe
                          email: john@example.com
                          image: https://example.com/avatar.jpg
                        applicationId: 456e7890-e89b-12d3-a456-426614174000
                        createdAt: '2024-01-04T10:20:30.456Z'
                        modifiedAt: '2024-01-05T14:22:10.123Z'
        '400':
          description: bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '500':
          description: internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    BulkUpdateIssuesRequest:
      type: object
      properties:
        issueIds:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: Array of issue IDs to update. Maximum 100 issues per request.
          example:
            - 123e4567-e89b-12d3-a456-426614174000
            - 223e4567-e89b-12d3-a456-426614174001
        status:
          $ref: '#/components/schemas/IssueStatus'
          description: Updated status to apply to all specified issues
          example: RESOLVED
        priority:
          $ref: '#/components/schemas/IssuePriority'
          description: Updated priority level to apply to all specified issues
          example: HIGH
        assignedTo:
          description: >-
            User ID to assign all issues to, or null to unassign. User must be a
            valid organization member and not banned.
          example: user_789012
          nullable: true
          anyOf:
            - type: string
            - type: 'null'
        comment:
          description: >-
            Optional comment to add when updating issues. Typically used when
            resolving or dismissing issues to provide context.
          example: Fixed in version 2.1.0
          type: string
      required:
        - issueIds
      additionalProperties: false
      title: BulkUpdateIssuesRequest
      description: Request body for bulk updating multiple issues
    BulkUpdateIssuesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/IssueOutput'
      required:
        - data
      additionalProperties: false
      title: BulkUpdateIssuesResponse
      description: Successful response containing updated issues with assigned user info
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable error message explaining the error.
          example: Resource not found
      required:
        - message
      additionalProperties: false
      title: ErrorResponse
      description: Standard error format for failed API operations.
    ValidationErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable error message indicating what went wrong.
          example: Invalid request data
        issues:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              message:
                type: string
              path:
                type: array
                items:
                  type: string
            required:
              - code
              - message
              - path
            additionalProperties: false
          description: Array of detailed validation error objects.
          example:
            - code: invalid_string
              message: Invalid UUID
              path:
                - id
      required:
        - message
        - issues
      additionalProperties: false
      title: ValidationErrorResponse
      description: Details about validation errors in incoming requests.
    IssueStatus:
      type: string
      enum:
        - OPEN
        - RESOLVED
        - REJECTED
      description: The status of the issue
      example: OPEN
    IssuePriority:
      type: string
      enum:
        - LOW
        - MEDIUM
        - HIGH
      description: The priority level of the issue
      example: MEDIUM
    IssueOutput:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: Unique identifier of the issue
          example: 123e4567-e89b-12d3-a456-426614174000
        title:
          type: string
          description: Title of the issue
          example: Response quality degradation
        createdAt:
          description: When the issue was created
          example: '2024-01-05T12:34:56.789Z'
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        orgId:
          type: string
          description: Organization ID that owns this issue
          example: org_123456
        description:
          description: Detailed description of the issue
          example: The chatbot is providing incomplete responses to user queries
          type: string
        summary:
          description: Detailed summary of the issue
          example: The chatbot is providing incomplete responses to user queries
          type: string
        impact:
          description: Detailed impact of the issue
          example: The chatbot is providing incomplete responses to user queries
          type: string
        comment:
          description: Optional comment explaining resolution or dismissal
          example: Working as intended
          type: string
        status:
          $ref: '#/components/schemas/IssueStatus'
          description: Current status of the issue
        source:
          $ref: '#/components/schemas/IssueSource'
          description: Where the issue originated from
        priority:
          $ref: '#/components/schemas/IssuePriority'
          description: Priority level of the issue
          example: HIGH
        type:
          $ref: '#/components/schemas/IssueType'
          description: Type/category of the issue
        assignedTo:
          description: User ID of the person assigned to this issue
          example: user_789012
          type: string
        assignedUser:
          $ref: '#/components/schemas/AssignedUserInfoOutput'
          description: Full information about the assigned user
        applicationId:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: The application this issue belongs to
          example: 456e7890-e89b-12d3-a456-426614174000
        topicId:
          description: Associated topic ID if issue came from a topic
          example: 789e4567-e89b-12d3-a456-426614174000
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        taskId:
          description: Associated task ID if issue came from a task
          example: 789e4567-e89b-12d3-a456-426614174000
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        testId:
          description: Associated test ID if issue came from a test
          example: 789e4567-e89b-12d3-a456-426614174000
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        evalDefinitionId:
          description: Associated evaluation definition ID if issue came from an evaluation
          example: 789e4567-e89b-12d3-a456-426614174000
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        annotationId:
          description: Associated annotation ID if related to an annotation
          example: 890e5678-e89b-12d3-a456-426614174000
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        traceId:
          description: Associated trace ID for monitoring/debugging
          example: trace_abc123
          type: string
        experimentId:
          description: Associated experiment ID if issue is linked to an experiment
          example: 789e4567-e89b-12d3-a456-426614174000
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        parentId:
          description: Parent issue ID for sub-issues
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        modifiedAt:
          description: When the issue was last modified
          example: '2024-01-05T12:34:56.789Z'
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        hasSuggestedTask:
          description: >-
            Whether this issue has an associated suggested task in draft status.
            True if the issue has a taskId and the task's status is DRAFT and
            the issue type is SUGGESTED_TASK.
          example: true
          type: boolean
      required:
        - id
        - title
        - createdAt
        - orgId
        - status
        - source
        - priority
        - type
        - applicationId
        - modifiedAt
      additionalProperties: false
      title: Issue
      description: An issue tracking problems or improvements in the AI application
    IssueSource:
      type: string
      enum:
        - TEST
        - TASK
        - TOPIC
        - SYSTEM
        - MONITORING
        - API
        - HUMAN_ANNOTATION
      description: The source where the issue was created from
      example: TEST
    IssueType:
      type: string
      enum:
        - BUG
        - HUMAN_ANNOTATION
        - SUGGESTED_TASK
        - USER_SIGNAL
      description: The type/category of the issue
      example: BUG
    AssignedUserInfoOutput:
      type: object
      properties:
        id:
          type: string
          description: User ID
          example: user_789012
        name:
          type: string
          description: User full name
          example: John Doe
        email:
          type: string
          format: email
          pattern: >-
            ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
          description: User email
          example: john@example.com
        image:
          description: User profile image URL
          example: https://example.com/avatar.jpg
          type: string
      required:
        - id
        - name
        - email
      additionalProperties: false
      title: AssignedUserInfo
      description: Information about the user assigned to an issue
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your unique Avido API key
    ApplicationId:
      type: apiKey
      in: header
      name: x-application-id
      description: Your unique Avido Application ID

````