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

# Update a transfer target

> Replaces a transfer target. Send the complete target, as when creating it.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/agents/{agent_uuid}/transfer-call-targets/{transfer_target_uuid}
openapi: 3.1.0
info:
  description: >-
    Manage your Klatt voice and chat agents, conversations, contacts and
    knowledge with an organization API key. Start with the
    [introduction](https://docs.klatt.ai/api-reference/introduction).
  title: Klatt API
  version: 1.0.0
servers:
  - url: https://api.klatt.ai
security:
  - bearerAuth: []
tags:
  - description: >-
      Agents that answer and place phone calls, and where they can transfer a
      call.
    name: Voice agents
  - description: Agents that answer WhatsApp chats.
    name: Chat agents
  - description: Calls and chats your agents have handled, with their analysis and state.
    name: Conversations
  - description: Lists of contacts and the custom fields each list defines.
    name: Contact lists
  - description: The people in a contact list.
    name: Contacts
  - description: Documents your agents read from, and their extracted text.
    name: Knowledge documents
  - description: >-
      Short question-and-answer and company-information entries your agents can
      use.
    name: Knowledge entries
paths:
  /api/v1/agents/{agent_uuid}/transfer-call-targets/{transfer_target_uuid}:
    put:
      tags:
        - Voice agents
      summary: Update a transfer target
      description: >-
        Replaces a transfer target. Send the complete target, as when creating
        it.
      operationId: updateTransferTarget
      parameters:
        - description: Unique identifier (UUID) of the agent.
          in: path
          name: agent_uuid
          required: true
          schema:
            format: uuid
            type: string
        - description: Unique identifier (UUID) of the transfer target.
          in: path
          name: transfer_target_uuid
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransferCallTargetRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransferCallTargetResponse'
          description: Successful Response
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            The agent or the transfer target does not exist in your
            organization.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: The request failed validation.
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    TransferCallTargetRequest:
      additionalProperties: false
      description: >-
        A person, phone number or SIP destination a voice agent may transfer the
        caller to.
      properties:
        announce_caller_number:
          default: false
          description: >-
            Whether the agent says the caller's phone number, digit by digit,
            when it briefs the person who answers. Only used when the agent
            briefs the team before transferring (`warm_transfer_enabled`).
            `announced` targets only.
          type: boolean
        description:
          description: >-
            When the agent should transfer a caller here, in plain words. The
            agent reads it to decide.
          minLength: 1
          type: string
        handoff_fields:
          description: >-
            Names of the information the agent passes to the receiving team, up
            to 5 names of 1 to 64 characters. `SIP` targets only.
          items:
            type: string
          maxItems: 5
          type: array
        name:
          description: Name of the destination, for example a team or a person.
          maxLength: 255
          minLength: 1
          type: string
        ringing_timeout:
          default: 20
          description: Seconds to wait for the destination to answer, from 5 to 120.
          maximum: 120
          minimum: 5
          type: integer
        schedule_mode:
          default: always
          description: >-
            When the target is offered: `always`, `when_open` or `when_closed`.
            The last two need your opening hours to be configured.
          enum:
            - always
            - when_open
            - when_closed
          type: string
        sip_destination:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            SIP address to transfer to. Required for `SIP`, not allowed for
            `PHONE_NUMBER`.
        to_number:
          anyOf:
            - pattern: ^\+[1-9][0-9]{1,14}$
              type: string
            - type: 'null'
          description: >-
            Phone number in international format. Required for `PHONE_NUMBER`,
            not allowed for `SIP`.
        transfer_method:
          default: announced
          description: >-
            `announced`: the agent announces the caller before connecting.
            `refer`: the call is handed over with a SIP REFER. `refer` is only
            for `SIP` targets.
          enum:
            - announced
            - refer
          type: string
        transfer_type:
          default: PHONE_NUMBER
          description: >-
            `PHONE_NUMBER` transfers to a phone number, `SIP` to a SIP
            destination.
          enum:
            - PHONE_NUMBER
            - SIP
          type: string
      required:
        - name
        - description
      type: object
    TransferCallTargetResponse:
      properties:
        announce_caller_number:
          default: false
          description: >-
            Whether the agent says the caller's phone number when it briefs the
            person who answers.
          type: boolean
        description:
          description: When the agent transfers a caller here.
          type: string
        handoff_fields:
          default: []
          description: Names of the information the agent passes to the receiving team.
          items:
            type: string
          type: array
        inactive_reason:
          anyOf:
            - const: opening_hours_not_configured
              type: string
            - type: 'null'
          description: >-
            `opening_hours_not_configured` when the target follows opening hours
            that are not configured. `null` when the target is active.
        inbound_only_numbers:
          default: []
          description: >-
            Phone targets only: numbers of this agent that can only receive
            calls, and so cannot place the transfer call.
          items:
            type: string
          type: array
        is_active:
          description: >-
            Whether the target can be used. A target that follows opening hours
            is inactive until your organization has configured them.
          type: boolean
        name:
          description: Name of the destination.
          type: string
        position:
          description: Position of the target among the agent's transfer targets.
          type: integer
        ringing_timeout:
          description: Seconds to wait for the destination to answer.
          type: integer
        schedule_mode:
          default: always
          description: 'When the target is offered: `always`, `when_open` or `when_closed`.'
          enum:
            - always
            - when_open
            - when_closed
          type: string
        sip_destination:
          anyOf:
            - type: string
            - type: 'null'
          description: SIP address to transfer to. `null` for `PHONE_NUMBER` targets.
        to_number:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Phone number to transfer to, in international format. `null` for
            `SIP` targets.
        transfer_method:
          default: announced
          description: '`announced` or `refer`.'
          enum:
            - announced
            - refer
          type: string
        transfer_target_uuid:
          description: Unique identifier (UUID) of the transfer target.
          format: uuid
          type: string
        transfer_type:
          default: PHONE_NUMBER
          description: '`PHONE_NUMBER` or `SIP`.'
          enum:
            - PHONE_NUMBER
            - SIP
          type: string
      required:
        - transfer_target_uuid
        - name
        - description
        - to_number
        - ringing_timeout
        - is_active
        - inactive_reason
        - position
      type: object
    Error:
      description: Body of an error response.
      properties:
        detail:
          description: >-
            A stable error code such as `agent_not_found`. A few authentication
            errors carry a short text instead, such as `Invalid or expired API
            key`.
          type: string
        message:
          description: >-
            A human-readable explanation. Present only on errors raised before
            the request reaches the API, such as `api_key_wrong_host`.
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      description: 'Body of a `422` response: the request failed validation.'
      properties:
        detail:
          anyOf:
            - items:
                $ref: '#/components/schemas/ValidationError'
              type: array
            - type: string
            - type: object
          description: >-
            A list of field errors when the body or a parameter is invalid, a
            string with an error code for some other refusals, or an object with
            a `code` when a knowledge limit is exceeded.
      type: object
    ValidationError:
      description: One invalid field of a request.
      properties:
        ctx:
          description: Extra details about the error, such as the limit that was exceeded.
          type: object
        input:
          description: The value that failed validation, when it is returned.
        loc:
          description: 'Where the error is: `body`, `query` or `path`, then the field names.'
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          description: What is wrong with the value.
          type: string
        type:
          description: A short code for the kind of error.
          type: string
      required:
        - loc
        - msg
        - type
      type: object
  responses:
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        The API key is missing, malformed, unknown, deleted or sent to the wrong
        host. `detail` is a code such as `api_key_required`,
        `console_token_not_accepted` or `api_key_wrong_host`, or a short text
        such as `Invalid or expired API key`. Keys do not expire.
      headers:
        WWW-Authenticate:
          description: Always `Bearer`.
          schema:
            type: string
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        The key is valid but may not do this. `detail` is `permission_required`,
        `organization_deleted` or `Organization API keys cannot access this
        operation`.
    RateLimited:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The key exceeded its request limit. `detail` is `rate_limited`.
      headers:
        Retry-After:
          description: Seconds to wait before sending the next request.
          schema:
            type: integer
    ServiceUnavailable:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        A dependency the request needs is temporarily unavailable. `detail`
        names it, for example `rate_limit_unavailable` or
        `contacts_unavailable`. Retry with backoff.
  securitySchemes:
    bearerAuth:
      description: >-
        An organization API key created in the Klatt console, sent as
        `Authorization: Bearer <key>`. The key belongs to one organization.
      scheme: bearer
      type: http

````

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