> ## 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
        '401':
          description: Missing or invalid API key
        '404':
          description: Destination not found
      security:
        - bearer: []
components:
  schemas:
    V1UpdateTicketDestinationDto:
      type: object
      properties:
        name:
          type: string
          maxLength: 120
        config:
          additionalProperties: true
          oneOf:
            - $ref: '#/components/schemas/CustomTicketDestinationConfigDto'
            - type: object
              additionalProperties: true
          description: >-
            Kind-specific configuration including explicit custom update
            capability.
        credentials:
          type: object
          description: Present = credential rotation.
          additionalProperties:
            type: string
          writeOnly: true
        aiContext:
          type: string
          maxLength: 2000
          description: Per-destination AI triage context.
        scopeKind:
          type: string
          enum:
            - trackers
            - folder
          default: trackers
          description: >-
            What routes tickets here: tracker conditions or one tool folder
            (every tool inside it, at any depth). Never both; `folder` clears
            the conditions.
        folderId:
          type: string
          description: The tool folder of a `folder` scope (required there).
        routingConditions:
          type: array
          items:
            $ref: '#/components/schemas/TicketRoutingConditionDto'
        template:
          $ref: '#/components/schemas/TicketDestinationTemplateDto'
        enabled:
          type: boolean
        priority:
          type: number
          minimum: 0
          maximum: 100
          default: 0
          description: >-
            Routing order: a higher priority is tried first; ties keep the
            creation order.
        kind:
          type: string
          enum:
            - zendesk
            - custom
            - email
    CustomTicketDestinationConfigDto:
      type: object
      properties:
        url:
          type: string
          format: uri
        method:
          type: string
          enum:
            - POST
            - PUT
        headers:
          type: object
          additionalProperties:
            type: string
        update:
          $ref: '#/components/schemas/CustomTicketDestinationUpdateDto'
      required:
        - url
    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
    CustomTicketDestinationUpdateDto:
      type: object
      properties:
        mode:
          type: string
          enum:
            - upsert
            - remote-id
          description: >-
            upsert explicitly reuses the creation URL/method with a stable
            externalId. remote-id updates the previously created remote
            resource.
        url:
          type: string
          maxLength: 2000
          description: >-
            remote-id only: same-origin URL containing {{remoteId}}; credentials
            and fragments are forbidden.
        method:
          type: string
          enum:
            - PUT
            - PATCH
          default: PATCH
          description: remote-id only.
        responseIdPath:
          type: string
          maxLength: 200
          description: >-
            Dot-separated path to the ID in the creation response, required for
            remote-id. Prototype keys are forbidden.
      required:
        - mode
  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.