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

# Update an issue

> Changes the fields sent and leaves the others. Status and priority changes are recorded in the issue's activity. Needs a Full access key.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v2/issues/{issueId}
openapi: 3.1.0
info:
  title: Centillion Labs API
  description: >-
    The public API of Centillion Labs: agents, their branches and versions,
    knowledge, tools and the secrets they send, chat, conversations, contacts,
    campaigns, batch calls, agent testing, issues and Helpdesk.
  version: 2.0.0
servers:
  - url: https://app.cntillion.com
security:
  - workspaceApiKey: []
  - workspaceApiKeyHeader: []
tags:
  - name: Agents
    description: Create, read, change, clone and delete agents.
  - name: Branches and versions
    description: Branches, drafts, immutable versions, merges, publishing and traffic.
  - name: Workflow and voice
    description: A branch's workflow and its voice settings.
  - name: Tools
    description: 'Workspace tools: HTTP, client, MCP server and code tools.'
  - name: Secrets
    description: >-
      Named credentials, such as an API key, that HTTP tools and MCP servers
      send as a header by naming the secret's id in
      `configuration.secretHeaders`. A value is encrypted when saved and never
      returned. A new value reaches every tool and published agent that uses the
      secret on its next call, with nothing to publish, and a secret can be
      deleted only once no tool and no published agent sends it.
  - name: Auth connections
    description: >-
      How the workspace's tools sign in to an API, kept once and named by id in
      an HTTP tool's or an MCP server's `configuration.authConnectionId` (or
      `configuration.page.authConnectionId` for a web form's link request).
      Secrets are encrypted when saved and never returned. A change reaches
      every tool and published agent that uses the connection on its next call,
      and a connection can be deleted only once nothing signs in with it.
  - name: Knowledge sources
    description: What an agent knows, and training it on that.
  - name: Chat
    description: Talk to an agent from your own systems.
  - name: Conversations
    description: Conversations, their messages, feedback and analysis.
  - name: Leads and contacts
    description: The leads and contacts an agent collected.
  - name: Contacts and enrollments
    description: Upsert contacts and enroll them in always-open campaigns.
  - name: Batch calls
    description: Outbound call batches, their recipients and their runs.
  - name: Campaigns
    description: >-
      Managed outbound calling: campaigns that call each lead within calling
      windows and retry, call back or redirect as their lead policy allows,
      their leads, calls and attention items, and the workspace's campaign
      settings.
  - name: WhatsApp
    description: WhatsApp templates and template messages.
  - name: Agent testing
    description: Workspace tests, agent suites, execution, and results.
  - name: Issues
    description: >-
      Issues an agent raised or a teammate flagged about how it behaves: triage,
      comment, merge and resolve.
  - name: Helpdesk
    description: Helpdesk tickets, their messages, teams and statuses.
  - name: Status
    description: Whether the API is up.
paths:
  /api/v2/issues/{issueId}:
    patch:
      tags:
        - Issues
      summary: Update an issue
      description: >-
        Changes the fields sent and leaves the others. Status and priority
        changes are recorded in the issue's activity. Needs a Full access key.
      operationId: updateIssue
      parameters:
        - name: issueId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateIssueRequest'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateIssueResponse'
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '409':
          $ref: '#/components/responses/Error409'
        '413':
          $ref: '#/components/responses/Error413'
        '415':
          $ref: '#/components/responses/Error415'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '504':
          $ref: '#/components/responses/Error504'
components:
  schemas:
    UpdateIssueRequest:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 120
        description:
          description: Null clears it.
          anyOf:
            - type: string
              minLength: 1
              maxLength: 10000
            - type: 'null'
        status:
          description: >-
            Any status but `MERGED`, which only merging sets. A merged issue
            keeps its status.
          type: string
          enum:
            - PENDING
            - IN_PROGRESS
            - RESOLVED
            - CANCELLED
        priority:
          description: Null clears it.
          anyOf:
            - type: string
              enum:
                - URGENT
                - HIGH
                - MEDIUM
                - LOW
            - type: 'null'
        assigneeUserId:
          description: A workspace member who can view agents, or null to unassign.
          anyOf:
            - type: string
              minLength: 1
              maxLength: 200
            - type: 'null'
      additionalProperties: false
    CreateIssueResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/IssueDetail'
      required:
        - data
    IssueDetail:
      type: object
      properties:
        id:
          type: string
        agentId:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - PENDING
            - IN_PROGRESS
            - RESOLVED
            - CANCELLED
            - MERGED
        priority:
          anyOf:
            - type: string
              enum:
                - URGENT
                - HIGH
                - MEDIUM
                - LOW
            - type: 'null'
        source:
          type: string
          enum:
            - AGENT
            - CONVERSATION_REVIEW
            - MANUAL
            - ANALYSIS
          description: >-
            Who raised it: the agent, a review of a conversation, a teammate by
            hand, or conversation analysis.
        ownerUserId:
          description: The teammate who raised it; null for the agent.
          type:
            - string
            - 'null'
        assigneeUserId:
          type:
            - string
            - 'null'
        reportCount:
          type: integer
          minimum: 1
          description: 'How many times it was reported: 1, plus the issues merged into it.'
        createdAt:
          type: string
          format: date-time
        lastReportedAt:
          type: string
          format: date-time
        description:
          description: >-
            Markdown. Null for an issue raised on one message, whose comment is
            its first event.
          type:
            - string
            - 'null'
        conversations:
          type: array
          items:
            $ref: '#/components/schemas/IssueConversation'
        events:
          type: array
          items:
            $ref: '#/components/schemas/IssueEvent'
          description: The issue's activity, oldest first.
        mergedInto:
          anyOf:
            - type: object
              properties:
                id:
                  type: string
                title:
                  type: string
              required:
                - id
                - title
            - type: 'null'
          description: Set on a `MERGED` issue.
        mergedIssues:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              title:
                type: string
              createdAt:
                type: string
                format: date-time
            required:
              - id
              - title
              - createdAt
          description: The issues merged into this one.
        mergeProposalId:
          description: >-
            The merge proposal that fixes it. Merging that proposal resolves the
            issue.
          type:
            - string
            - 'null'
      required:
        - id
        - agentId
        - title
        - status
        - priority
        - source
        - ownerUserId
        - assigneeUserId
        - reportCount
        - createdAt
        - lastReportedAt
        - description
        - conversations
        - events
        - mergedInto
        - mergedIssues
        - mergeProposalId
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: A stable code, such as `NOT_FOUND`.
            message:
              type: string
              description: What went wrong, for a person.
            details:
              description: More about the failure, on some endpoints.
          required:
            - code
            - message
      required:
        - error
    IssueConversation:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              const: conversation
            id:
              type: string
              description: The ID the Conversations endpoints read it by.
          required:
            - type
            - id
        - type: object
          properties:
            type:
              type: string
              const: channel_conversation
            id:
              type: string
              description: >-
                A conversation on a connected channel, such as email or
                WhatsApp.
          required:
            - type
            - id
        - type: object
          properties:
            type:
              type: string
              const: test_run
            id:
              type: string
              description: A test run conversation (`TestConversation`).
          required:
            - type
            - id
        - type: object
          properties:
            type:
              type: string
              const: pending
          required:
            - type
          description: A call or chat flagged before it was logged.
    IssueEvent:
      oneOf:
        - type: object
          properties:
            id:
              type: string
            actorUserId:
              description: The teammate; null for the agent.
              type:
                - string
                - 'null'
            createdAt:
              type: string
              format: date-time
            type:
              type: string
              const: comment
            body:
              type: string
          required:
            - id
            - actorUserId
            - createdAt
            - type
            - body
        - type: object
          properties:
            id:
              type: string
            actorUserId:
              description: The teammate; null for the agent.
              type:
                - string
                - 'null'
            createdAt:
              type: string
              format: date-time
            type:
              type: string
              const: turn_comment
            body:
              type: string
            conversationId:
              description: One of the issue's `conversations[].id`.
              type:
                - string
                - 'null'
            messageId:
              type:
                - string
                - 'null'
            turnIndex:
              anyOf:
                - type: integer
                  minimum: 0
                - type: 'null'
          required:
            - id
            - actorUserId
            - createdAt
            - type
            - body
            - conversationId
            - messageId
            - turnIndex
        - type: object
          properties:
            id:
              type: string
            actorUserId:
              description: The teammate; null for the agent.
              type:
                - string
                - 'null'
            createdAt:
              type: string
              format: date-time
            type:
              type: string
              const: status
            status:
              type: string
              enum:
                - PENDING
                - IN_PROGRESS
                - RESOLVED
                - CANCELLED
                - MERGED
          required:
            - id
            - actorUserId
            - createdAt
            - type
            - status
        - type: object
          properties:
            id:
              type: string
            actorUserId:
              description: The teammate; null for the agent.
              type:
                - string
                - 'null'
            createdAt:
              type: string
              format: date-time
            type:
              type: string
              const: priority
            priority:
              anyOf:
                - type: string
                  enum:
                    - URGENT
                    - HIGH
                    - MEDIUM
                    - LOW
                - type: 'null'
          required:
            - id
            - actorUserId
            - createdAt
            - type
            - priority
        - type: object
          properties:
            id:
              type: string
            actorUserId:
              description: The teammate; null for the agent.
              type:
                - string
                - 'null'
            createdAt:
              type: string
              format: date-time
            type:
              type: string
              const: merged
            issue:
              anyOf:
                - type: object
                  properties:
                    id:
                      type: string
                    title:
                      type: string
                  required:
                    - id
                    - title
                - type: 'null'
              description: The issue it was merged into; null once that one was deleted.
          required:
            - id
            - actorUserId
            - createdAt
            - type
            - issue
        - type: object
          properties:
            id:
              type: string
            actorUserId:
              description: The teammate; null for the agent.
              type:
                - string
                - 'null'
            createdAt:
              type: string
              format: date-time
            type:
              type: string
              const: dispatch
            sessionId:
              type: string
              description: A Mastermind chat a teammate started about the issue.
          required:
            - id
            - actorUserId
            - createdAt
            - type
            - sessionId
  responses:
    Error400:
      description: The request is invalid. `error.message` names the first problem.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error401:
      description: No valid workspace API key was sent.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error403:
      description: The key or the workspace's plan does not allow this request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error404:
      description: The endpoint, or a record it names, was not found in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error409:
      description: The record changed since it was read, or its state does not allow this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error413:
      description: The request body is too large.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error415:
      description: The request body is not of a media type this endpoint accepts.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error429:
      description: Too many requests. Wait for `Retry-After` seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error500:
      description: The request could not be completed. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error504:
      description: The request took too long. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    workspaceApiKey:
      type: http
      scheme: bearer
      bearerFormat: cl_api_...
      description: >-
        A workspace API key from Workspace settings > API keys, sent as
        `Authorization: Bearer cl_api_...`. A Read only key can call the GET
        endpoints; every other method needs a Full access key.
    workspaceApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        The same workspace API key, for a gateway that keeps `Authorization` for
        itself.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.