Skip to main content
PATCH
/
external_connections
/
{id}
/
phone_numbers
/
{phone_number_id}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const phoneNumber = await client.externalConnections.phoneNumbers.update('1234567889', { id: 'id' });

console.log(phoneNumber.data);
{
  "data": {
    "ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
    "telephone_number": "<string>",
    "number_id": "<string>",
    "civic_address_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "displayed_country_code": "<string>",
    "acquired_capabilities": [
      "FirstPartyAppAssignment"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<int64>
required

Identifies the resource.

Example:

"1293384261075731499"

phone_number_id
string
required

A phone number's ID via the Telnyx API

Example:

"1234567889"

Body

application/json

Values that can be set when updating a phone number

location_id
string<uuid>

Identifies the location to assign the phone number to.

Response

Successful response

data
Phone number details with relation to an external connection · object