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"
]
}
}Asynchronously update settings of the phone number associated with the given external connection.
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"
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1293384261075731499"
A phone number's ID via the Telnyx API
"1234567889"
Values that can be set when updating a phone number
Identifies the location to assign the phone number to.
Successful response
Show child attributes
Uniquely identifies the resource.
"542c3bca-d247-42bc-8fe7-e01d16ecd761"
Phone number in E164 format.
Phone number ID from the Telnyx API.
Identifies the civic address assigned to the phone number.
Identifies the location assigned to the phone number.
The iso country code that will be displayed to the user when they receive a call from this phone number.
The capabilities that are available for this phone number on Microsoft Teams.
FirstPartyAppAssignment, InboundCalling, Office365, OutboundCalling, UserAssignment Was this page helpful?