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

# Update a conversation

> Update an existing conversation (internal notes and drafts can be updated; drafts can also be published by changing isDraft to false)



## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api patch /ticket/{ticketId}/conversation/{conversationId}
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /ticket/{ticketId}/conversation/{conversationId}:
    patch:
      tags:
        - Conversation
      summary: Update a conversation
      description: >-
        Update an existing conversation (internal notes and drafts can be
        updated; drafts can also be published by changing isDraft to false)
      operationId: updateConversation
      parameters:
        - name: ticketId
          in: path
          required: true
          schema:
            type: integer
          description: The ID of the ticket
        - name: conversationId
          in: path
          required: true
          schema:
            type: integer
          description: The ID of the conversation to update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: object
                  properties:
                    message:
                      type: string
                      description: Updated message content
                  description: Updated content
                type:
                  type: string
                  enum:
                    - text
                    - html
                  description: Content type
                isDraft:
                  type: boolean
                  description: Whether this is a draft (set to false to publish a draft)
                to:
                  type: array
                  items:
                    type: string
                  description: Recipients email addresses (for drafts)
                cc:
                  type: array
                  items:
                    type: string
                  description: CC email addresses (for drafts)
                bcc:
                  type: array
                  items:
                    type: string
                  description: BCC email addresses (for drafts)
                intentIds:
                  type: array
                  items:
                    type: integer
                  description: Array of intent IDs (for drafts)
                attachments:
                  type: array
                  items:
                    type: object
                  description: File attachments (for drafts)
                subchannelId:
                  type: integer
                  description: Subchannel ID (for drafts)
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
        '400':
          description: >-
            Bad request - Can only update internal notes or user doesn't own the
            note
        '403':
          description: Unauthorized
        '404':
          description: Ticket or conversation not found
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      description: Data format of Enneo error messages
      properties:
        error:
          type: string
          example: Contract 121 could not be processed
          description: Readable error message that should be shown to the user
        details:
          type: string
          example: >-
            Uncatched null point exception in testFunction() in
            /app/src/file:212
          description: Not easily readable error message that is for the developer
        txId:
          type: string
          example: c916167c94
          description: >-
            Internal transaction id. Useful for debugging. Corresponds to the
            OpenTelemetry trace ID.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````