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

# Atualizar número

> Altera configuração de um número.



## OpenAPI

````yaml /phone-numbers-api/api-reference/openapi-phone-numbers.json patch /v1/phone-numbers/{id}
openapi: 3.0.3
info:
  title: Notifique API. Números de Telefone
  description: >-
    API para **consultar números de telefone** do workspace, **buscar números
    disponíveis** para contratação e **configurar o comportamento de chamadas
    recebidas**.


    A **contratação** (reserva e pagamento) é feita pelo **painel** do
    Notifique. Use estes endpoints para integrações de consulta e configuração.


    **Autenticação:** cabeçalho `Authorization: Bearer sk_live_xxxxx` ou
    `x-api-key: sk_live_xxxxx`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfPhoneBearerAuth: []
  - ntfPhoneApiKeyHeader: []
tags:
  - name: Números de Telefone
    description: Listar, consultar, buscar disponíveis e configurar voz de entrada.
paths:
  /v1/phone-numbers/{id}:
    patch:
      tags:
        - Números de Telefone
      summary: Atualizar número
      description: Altera configuração de um número.
      operationId: ntfPhone_patchV1PhoneNumbersById
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NtfPhone_UpdateBody'
            example:
              label: Suporte comercial
              inboundVoiceAction: FORWARD
              forwardToE164: '+5511999887766'
              recordingEnabled: true
      responses:
        '200':
          description: Número atualizado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfPhone_SingleEnvelope'
        '401':
          $ref: '#/components/responses/NtfPhone_Unauthorized'
        '403':
          $ref: '#/components/responses/NtfPhone_Forbidden'
        '404':
          description: Número não encontrado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfPhone_ErrorEnvelope'
components:
  schemas:
    NtfPhone_UpdateBody:
      type: object
      properties:
        label:
          type: string
          nullable: true
          maxLength: 128
        inboundVoiceAction:
          type: string
          enum:
            - WEBHOOK_CONTROL
            - FORWARD
            - TTS_HANGUP
            - REJECT
            - VOICEMAIL
        forwardToE164:
          type: string
          nullable: true
          maxLength: 24
        inboundTtsText:
          type: string
          nullable: true
        inboundTtsVoice:
          type: string
          nullable: true
          maxLength: 64
        recordingEnabled:
          type: boolean
    NtfPhone_SingleEnvelope:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/NtfPhone_WorkspacePhoneNumber'
    NtfPhone_ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        message:
          type: string
    NtfPhone_WorkspacePhoneNumber:
      type: object
      properties:
        id:
          type: string
        workspaceId:
          type: string
        orderId:
          type: string
          nullable: true
        phoneE164:
          type: string
          example: '+5511987654321'
        countryCode:
          type: string
          example: BR
        phoneNumberType:
          type: string
          example: local
        features:
          type: array
          items:
            type: string
          example:
            - voice
            - sms
        status:
          type: string
          enum:
            - ACTIVE
            - PAST_DUE
            - SUSPENDED
            - RELEASED
        monthlyPriceBrlCents:
          type: integer
          example: 2990
        renewsAt:
          type: string
          format: date-time
          nullable: true
        label:
          type: string
          nullable: true
        inboundVoiceAction:
          type: string
          enum:
            - WEBHOOK_CONTROL
            - FORWARD
            - TTS_HANGUP
            - REJECT
            - VOICEMAIL
          default: WEBHOOK_CONTROL
        forwardToE164:
          type: string
          nullable: true
        inboundTtsText:
          type: string
          nullable: true
        inboundTtsVoice:
          type: string
          nullable: true
        recordingEnabled:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  responses:
    NtfPhone_Unauthorized:
      description: API Key ausente ou inválida.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NtfPhone_ErrorEnvelope'
          example:
            success: false
            error: Unauthorized
            message: Unauthorized
            code: UNAUTHORIZED
    NtfPhone_Forbidden:
      description: Escopo insuficiente.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NtfPhone_ErrorEnvelope'
          example:
            success: false
            error: Forbidden
            message: 'Missing scope: phone_numbers:read'
            code: FORBIDDEN
  securitySchemes:
    ntfPhoneBearerAuth:
      type: http
      scheme: bearer
      description: 'API Key no formato Bearer (ex.: sk_live_...).'
    ntfPhoneApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key alternativa ao Bearer.

````