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

# Update a ticket (title, severity, AI summary or category)



## OpenAPI

````yaml /openapi-v1.json patch /v1/tickets/{id}
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/tickets/{id}:
    patch:
      tags:
        - v1 - tickets
      summary: Update a ticket (title, severity, AI summary or category)
      operationId: V1TicketsController_updateTicket
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
            format: ObjectId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTicketBodyDTO'
      responses:
        '200':
          description: Ticket updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicTicketDto'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDto'
        '401':
          description: Missing or invalid API key
        '404':
          description: Ticket not found
      security:
        - bearer: []
components:
  schemas:
    UpdateTicketBodyDTO:
      type: object
      properties:
        title:
          type: string
          maxLength: 200
        severity:
          type: string
          enum:
            - high
            - medium
            - low
        aiSummary:
          type: string
          maxLength: 2000
        aiCategory:
          type: string
          maxLength: 200
    PublicTicketDto:
      type: object
      properties:
        _id:
          type: string
        code:
          type: string
        title:
          type: string
        severity:
          type: string
          enum:
            - high
            - medium
            - low
        destinationId:
          type: string
        destinationIds:
          description: >-
            Every destination the ticket was routed to; destinationId is the
            primary one.
          type: array
          items:
            type: string
        origin:
          $ref: '#/components/schemas/PublicTicketOriginDto'
        contentVersion:
          type: number
          minimum: 1
          default: 1
          description: Monotonic version of generated ticket content.
        followUp:
          $ref: '#/components/schemas/TicketFollowUpDto'
        score:
          type: object
          properties:
            value:
              type: number
            max:
              type: number
            kind:
              type: string
            display:
              type: string
        aiSummary:
          type: string
        aiCategory:
          type: string
        caseDescription:
          type: string
        historyHighlights:
          type: array
          items:
            type: string
        whatCustomerWants:
          type: string
        suggestedResolution:
          type: string
        language:
          type: string
        churnRisk:
          type: string
        criteria:
          type: array
          items:
            type: string
        historySnapshot:
          type: object
          additionalProperties: true
        sentiment:
          type: string
        generatedByAI:
          type: boolean
        customerComment:
          type: object
          properties:
            text:
              type: string
            isAudio:
              type: boolean
            audioUrl:
              type: string
            transcription:
              type: string
        client:
          type: object
          properties:
            clientId:
              type: string
            name:
              type: string
            email:
              type: string
            phone:
              type: string
        timeline:
          type: array
          items:
            type: object
            additionalProperties: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - _id
        - title
        - severity
        - origin
        - contentVersion
    ValidationErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 400
        message:
          description: Array of validation error messages
          example:
            - email must be a valid email
            - password must be at least 8 characters
          type: array
          items:
            type: string
        error:
          type: string
          description: Error type
          example: Bad Request
      required:
        - statusCode
        - message
        - error
    PublicTicketOriginDto:
      type: object
      properties:
        tool:
          type: string
          enum:
            - woku
            - nps
            - form
            - csat
            - ces
        refId:
          type: string
        instrumentId:
          type: string
        instrumentName:
          type: string
        trackers:
          type: array
          items:
            type: object
            properties:
              trackerId:
                type: string
              name:
                type: string
              value:
                type: string
              label:
                type: string
                description: >-
                  Name of the entity the value identifies (a journey name), if
                  any.
        folder:
          description: Folder of the source tool, when it lives in one (SV-0021).
          allOf:
            - $ref: '#/components/schemas/PublicTicketOriginFolderDto'
      required:
        - tool
        - refId
    TicketFollowUpDto:
      type: object
      properties:
        conversationId:
          type: string
        state:
          type: string
          enum:
            - not_applicable
            - pending
            - initial_sent
            - awaiting_detail
            - closing
            - completed
            - timed_out
            - cancelled
        reason:
          type: string
        availableSummaryVersion:
          type: number
        enrichmentState:
          type: string
          enum:
            - processing
            - applied
            - failed
            - skipped
          description: Current result of applying follow-up evidence to the ticket.
        enrichmentReason:
          type: string
          description: >-
            Machine-readable reason for the enrichment result, without provider
            details or credentials.
        appliedSummaryVersion:
          type: number
          description: >-
            Last summary version successfully applied to this ticket.
            Conversation completion alone does not imply enrichment.
        enrichedAt:
          type: string
          format: date-time
      required:
        - state
    PublicTicketOriginFolderDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        path:
          type: string
          description: Breadcrumb, root first ("Tiendas > Santiago").
        ancestorIds:
          description: The folder first, then its parents up to the root.
          type: array
          items:
            type: string
      required:
        - id
        - name
        - path
        - ancestorIds
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````

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