Represents the subaccount's inheritance settings for voice dialing permissions.
GET https://voice.twilio.com/v1/Settings
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchDialingPermissionsSettings() {11const setting = await client.voice.v1.dialingPermissions.settings().fetch();1213console.log(setting.dialingPermissionsInheritance);14}1516fetchDialingPermissionsSettings();
1{2"dialing_permissions_inheritance": true,3"url": "https://voice.twilio.com/v1/Settings"4}
POST https://voice.twilio.com/v1/Settings
application/x-www-form-urlencoded
true
for the sub-account to inherit voice dialing permissions from the Master Project; otherwise false
.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function updateDialingPermissionsSettings() {11const setting = await client.voice.v1.dialingPermissions12.settings()13.update({ dialingPermissionsInheritance: false });1415console.log(setting.dialingPermissionsInheritance);16}1718updateDialingPermissionsSettings();
1{2"dialing_permissions_inheritance": false,3"url": "https://voice.twilio.com/v1/Settings"4}