are activated for a given account.
for an account or a specific subaccount.
Encoding type:application/x-www-form-urlencoded
Property nameTypeRequiredDescriptionChild properties
AdvancedFeaturesbooleanOptional A boolean flag to enable Advanced Features for Voice Insights.
VoiceTracebooleanOptional A boolean flag to enable Voice Trace.
SubaccountSidSID<AC>Optional The unique SID identifier of the Subaccount.
Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
{
"VoiceTrace": true,
"AdvancedFeatures": true,
"SubaccountSid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
}
_18// Download the helper library from https://www.twilio.com/docs/node/install
_18const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18// Find your Account SID and Auth Token at twilio.com/console
_18// and set the environment variables. See http://twil.io/secure
_18const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18const authToken = process.env.TWILIO_AUTH_TOKEN;
_18const client = twilio(accountSid, authToken);
_18async function updateAccountSettings() {
_18 const setting = await client.insights.v1
_18 .update({ advancedFeatures: true });
_18 console.log(setting.accountSid);
_18updateAccountSettings();
_10 "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "advanced_features": true,
_10 "url": "https://insights.twilio.com/v1/Voice/Settings"
_19// Download the helper library from https://www.twilio.com/docs/node/install
_19const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19// Find your Account SID and Auth Token at twilio.com/console
_19// and set the environment variables. See http://twil.io/secure
_19const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19const authToken = process.env.TWILIO_AUTH_TOKEN;
_19const client = twilio(accountSid, authToken);
_19async function updateAccountSettings() {
_19 const setting = await client.insights.v1.settings().update({
_19 subaccountSid: "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
_19 console.log(setting.accountSid);
_19updateAccountSettings();
_10 "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "advanced_features": true,
_10 "url": "https://insights.twilio.com/v1/Voice/Settings"