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

# Update Phone Number

> Change the label and/or repoint the number at another agent — the
deployment-pipeline move (rebind from the staging agent to the production
one).



## OpenAPI

````yaml patch /v1/agent/phone-numbers/{phone_number_id}
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/phone-numbers/{phone_number_id}:
    patch:
      tags:
        - Phone Numbers
      summary: Update Phone Number
      description: >-
        Change the label and/or repoint the number at another agent — the

        deployment-pipeline move (rebind from the staging agent to the
        production

        one). Send `agent_id: null` to unbind; unbound numbers ring busy. The

        agent must live in the number's workspace. Rebinding is a routing-table

        update resolved on the next inbound call; nothing about the number
        itself

        is reprovisioned.
      parameters:
        - in: path
          name: phone_number_id
          description: ''
          required: true
          schema:
            title: Phone Number Id
            type: string
          deprecated: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicPhoneNumberUpdatePayload'
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  phone_number_id:
                    title: Phone Number Id
                    type: string
                  workspace_id:
                    title: Workspace Id
                    type: string
                  phone_number:
                    description: E.164, e.g. +14155550123.
                    title: Phone Number
                    type: string
                  provider:
                    enum:
                      - livekit
                      - twilio
                    title: Provider
                    type: string
                  label:
                    default: ''
                    title: Label
                    type: string
                  agent_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      Inbound calls route to this agent; unbound numbers ring
                      busy.
                    title: Agent Id
                  status:
                    enum:
                      - provisioning
                      - active
                      - error
                      - released
                    title: Status
                    type: string
                  status_detail:
                    default: ''
                    description: What failed when status is `error`; empty otherwise.
                    title: Status Detail
                    type: string
                  created_at:
                    format: date-time
                    title: Created At
                    type: string
                  updated_at:
                    format: date-time
                    title: Updated At
                    type: string
                required:
                  - phone_number_id
                  - workspace_id
                  - phone_number
                  - provider
                  - agent_id
                  - status
                  - created_at
                  - updated_at
                type: object
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '422':
          description: ''
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    PublicPhoneNumberUpdatePayload:
      additionalProperties: false
      properties:
        label:
          anyOf:
            - maxLength: 120
              type: string
            - type: 'null'
          default: null
          title: Label
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Agent that answers this number's inbound calls. Explicit null
            unbinds; omit the field to keep the current binding.
          title: Agent Id
      title: PublicPhoneNumberUpdatePayload
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````