Check out our upcoming events and meetups! View events →
Updates settings of an existing TeXML Application.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const texmlApplication = await client.texmlApplications.update('1293384261075731499', {
friendly_name: 'call-router',
voice_url: 'https://example.com',
});
console.log(texmlApplication.data);{
"data": {
"id": "1293384261075731499",
"record_type": "texml_application",
"active": false,
"friendly_name": "call-router",
"anchorsite_override": "Amsterdam, Netherlands",
"dtmf_type": "Inband",
"first_command_timeout": true,
"first_command_timeout_secs": 10,
"voice_url": "https://example.com",
"voice_fallback_url": "https://fallback.example.com",
"call_cost_in_webhooks": false,
"voice_method": "get",
"status_callback": "https://example.com",
"status_callback_method": "get",
"tags": [
"tag1",
"tag2"
],
"inbound": {
"channel_limit": 10,
"shaken_stir_enabled": true,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
},
"created_at": "2020-02-02T22:25:27.521Z",
"updated_at": "2020-02-03T22:25:27.521Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1293384261075731499"
Parameters that can be updated in a TeXML Application
A user-assigned name to help manage the application.
"call-router"
URL to which Telnyx will deliver your XML Translator webhooks.
"https://example.com"
Specifies whether the connection can be used.
false
Latency directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media.
Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany "Amsterdam, Netherlands"
Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats.
RFC 2833, Inband, SIP INFO "Inband"
Specifies whether calls to phone numbers associated with this connection should hangup after timing out.
true
Specifies how many seconds to wait before timing out a dial command.
10
URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url.
"https://fallback.example.com"
Specifies if call cost webhooks should be sent for this TeXML Application.
HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'.
get, post "get"
URL for Telnyx to send requests to containing information about call progress events.
"https://example.com"
HTTP request method Telnyx should use when requesting the status_callback URL.
get, post "get"
Tags associated with the Texml Application.
["tag1", "tag2"]Show child attributes
Show child attributes
Successful response
Show child attributes
{
"id": "1293384261075731499",
"record_type": "texml_application",
"active": false,
"friendly_name": "call-router",
"anchorsite_override": "Amsterdam, Netherlands",
"dtmf_type": "Inband",
"first_command_timeout": true,
"first_command_timeout_secs": 10,
"voice_url": "https://example.com",
"voice_fallback_url": "https://fallback.example.com",
"call_cost_in_webhooks": false,
"voice_method": "get",
"status_callback": "https://example.com",
"status_callback_method": "get",
"tags": ["tag1", "tag2"],
"inbound": {
"channel_limit": 10,
"shaken_stir_enabled": true,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
},
"created_at": "2020-02-02T22:25:27.521Z",
"updated_at": "2020-02-03T22:25:27.521Z"
}Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const texmlApplication = await client.texmlApplications.update('1293384261075731499', {
friendly_name: 'call-router',
voice_url: 'https://example.com',
});
console.log(texmlApplication.data);{
"data": {
"id": "1293384261075731499",
"record_type": "texml_application",
"active": false,
"friendly_name": "call-router",
"anchorsite_override": "Amsterdam, Netherlands",
"dtmf_type": "Inband",
"first_command_timeout": true,
"first_command_timeout_secs": 10,
"voice_url": "https://example.com",
"voice_fallback_url": "https://fallback.example.com",
"call_cost_in_webhooks": false,
"voice_method": "get",
"status_callback": "https://example.com",
"status_callback_method": "get",
"tags": [
"tag1",
"tag2"
],
"inbound": {
"channel_limit": 10,
"shaken_stir_enabled": true,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
},
"created_at": "2020-02-02T22:25:27.521Z",
"updated_at": "2020-02-03T22:25:27.521Z"
}
}