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

# Update Phone Number

> Update a binding in place — id and server_url_secret stay stable, so
call-init endpoints keep verifying with the same secret across edits.



## OpenAPI

````yaml /openapi.json put /v1/phone-numbers/{phone_number_id}
openapi: 3.1.0
info:
  title: TurnCall
  description: Production voice agent platform API
  version: 0.1.0
servers: []
security: []
paths:
  /v1/phone-numbers/{phone_number_id}:
    put:
      tags:
        - phone-numbers
      summary: Update Phone Number
      description: |-
        Update a binding in place — id and server_url_secret stay stable, so
        call-init endpoints keep verifying with the same secret across edits.
      operationId: update_phone_number_v1_phone_numbers__phone_number_id__put
      parameters:
        - name: phone_number_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Phone Number Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePhoneNumberRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Update Phone Number V1 Phone Numbers  Phone Number
                  Id  Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdatePhoneNumberRequest:
      properties:
        routing_target_type:
          type: string
          pattern: ^(agent|workflow|webhook)$
          title: Routing Target Type
        routing_target_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Routing Target Id
        server_url:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Server Url
        sms_enabled:
          type: boolean
          title: Sms Enabled
          default: false
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
      type: object
      required:
        - routing_target_type
      title: UpdatePhoneNumberRequest
      description: >-
        In-place update of a binding's routing/SMS config.


        The number's identity (SID, E.164) and its server_url_secret are stable
        —

        call-init endpoints keep verifying with the same secret across edits.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````