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



## OpenAPI

````yaml /openapi-v1.json patch /v1/ticket-destinations/{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/ticket-destinations/{id}:
    patch:
      tags:
        - v1 - ticket-destinations
      summary: Update a ticket destination
      operationId: V1TicketDestinationsController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
            format: ObjectId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1UpdateTicketDestinationDto'
      responses:
        '200':
          description: ''
        '400':
          description: Validation error
        '404':
          description: Destination not found
      security:
        - bearer: []
components:
  schemas:
    V1UpdateTicketDestinationDto:
      type: object
      properties:
        name:
          type: string
          maxLength: 120
        config:
          type: object
          additionalProperties: true
        credentials:
          type: object
          description: Present = credential rotation.
          additionalProperties:
            type: string
          writeOnly: true
        aiContext:
          type: string
          maxLength: 2000
          description: Per-destination AI triage context.
        routingConditions:
          type: array
          items:
            $ref: '#/components/schemas/TicketRoutingConditionDto'
        template:
          $ref: '#/components/schemas/TicketDestinationTemplateDto'
        enabled:
          type: boolean
        kind:
          type: string
          enum:
            - zendesk
            - custom
            - email
    TicketRoutingConditionDto:
      type: object
      properties:
        relationToPrevious:
          type: string
          enum:
            - AND
            - OR
        trackerId:
          type: string
          description: CompanyExternalTracker id.
        operator:
          type: string
          enum:
            - equals
            - any
          default: equals
        value:
          type: string
          description: The value the tracker must equal. Required unless operator is "any".
      required:
        - trackerId
    TicketDestinationTemplateDto:
      type: object
      properties:
        preset:
          type: string
          example: custom
        body:
          type: string
          description: Custom JSON body with {{path}} placeholders.
      required:
        - preset
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````