***

title: update
slug: /reference/typescript/rest/phone-numbers/update
description: Update configuration for a phone number.
max-toc-depth: 3
---------------------

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

Update configuration for a phone number. Uses PUT.

<EndpointSchemaSnippet endpoint="PUT /api/relay/rest/phone_numbers/{id}" />

## **Response Example**

<EndpointResponseSnippet endpoint="PUT /api/relay/rest/phone_numbers/{id}" />

## **Example**

```typescript {9-9}
import { RestClient } from "@signalwire/sdk";

const client = new RestClient({
  project: "your-project-id",
  token: "your-api-token",
  host: "your-space.signalwire.com"
});

await client.phoneNumbers.update("phone-number-id", { name: "Support Line" });
```