***

title: update
slug: /reference/python/rest/compat/phone-numbers/update
description: Update a phone number's configuration.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Update a phone number's configuration (e.g., change voice/SMS URLs). Uses POST (Twilio convention).

<EndpointSchemaSnippet endpoint="POST /Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

client.compat.phone_numbers.update(
    "PN...",
    VoiceUrl="https://example.com/voice"
)
```