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

# Update a phone number's display label

> Updates the phone number's user-defined display label. Omitting `label` leaves it unchanged; setting it to null or an empty string clears it. The label is capped at 100 characters, is display-only, and never affects routing. It also seeds the billing entity name when set at purchase time; a later change here does not rename the already-created billing entity.



## OpenAPI

````yaml /api-reference/mobilerun-numbers.yaml patch /numbers/phones/{id}
openapi: 3.1.0
info:
  title: Mobilerun Numbers
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /numbers/phones/{id}:
    patch:
      tags:
        - Numbers
      summary: Update a phone number's display label
      description: >-
        Updates the phone number's user-defined display label. Omitting `label`
        leaves it unchanged; setting it to null or an empty string clears it.
        The label is capped at 100 characters, is display-only, and never
        affects routing. It also seeds the billing entity name when set at
        purchase time; a later change here does not rename the already-created
        billing entity.
      operationId: patchNumber
      parameters:
        - in: path
          name: id
          required: true
          schema:
            example: 550e8400-e29b-41d4-a716-446655440000
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchPhoneInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/PublicNumber'
                required:
                  - data
                type: object
          description: Number updated
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Not Found
        '500':
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NumberErrorResponse'
          description: >-
            Service Unavailable — phone numbers are disabled for this deployment
            (see `reason`)
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Mobilerun from '@mobilerun/sdk';


            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });


            const number = await
            client.numbers.update('550e8400-e29b-41d4-a716-446655440000');


            console.log(number.data);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            number = client.numbers.update(
                id="550e8400-e29b-41d4-a716-446655440000",
            )
            print(number.data)
components:
  schemas:
    PatchPhoneInput:
      properties:
        label:
          description: >-
            User-defined display label — NFC-normalized, up to 100 GRAPHEMES
            (not UTF-16 code units; an emoji/flag may span several).
            Display-only, never used for routing. Also seeds the billing entity
            name at purchase.
          example: Support line
          type:
            - string
            - 'null'
      type: object
    PublicNumber:
      properties:
        canSend:
          type: boolean
        cancelAtPeriodEnd:
          type: boolean
        cancellable:
          type: boolean
        capabilities:
          items:
            enum:
              - sms
              - voice
            type: string
          type:
            - array
            - 'null'
        checkoutUrl:
          type:
            - string
            - 'null'
        countryCode:
          type:
            - string
            - 'null'
        createdAt:
          format: date-time
          type:
            - string
            - 'null'
        currentPeriodEnd:
          format: date-time
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        label:
          type:
            - string
            - 'null'
        phoneNumber:
          type:
            - string
            - 'null'
        purpose:
          type:
            - string
            - 'null'
        state:
          enum:
            - awaiting_payment
            - provisioning
            - active
            - cancel_scheduled
            - expired
            - failed
          type: string
        updatedAt:
          format: date-time
          type:
            - string
            - 'null'
      required:
        - id
        - phoneNumber
        - label
        - state
        - countryCode
        - capabilities
        - canSend
        - purpose
        - checkoutUrl
        - currentPeriodEnd
        - cancelAtPeriodEnd
        - cancellable
        - createdAt
        - updatedAt
      type: object
    NumberErrorResponse:
      properties:
        message:
          type: string
        reason:
          enum:
            - product_disabled
            - not_cancellable
          type: string
        success:
          enum:
            - false
          type: boolean
      required:
        - success
        - reason
        - message
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````