import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.channels.twilio.numbers.update({
channelId: 815949,
twilioNumberUpdateRequest: {
friendlyName: "Support Line",
phoneSid: "PN123",
},
});
console.log(result);
}
run();{
"phone_number": "<string>"
}Update a Twilio number and associate it with a channel.
import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.channels.twilio.numbers.update({
channelId: 815949,
twilioNumberUpdateRequest: {
friendlyName: "Support Line",
phoneSid: "PN123",
},
});
console.log(result);
}
run();{
"phone_number": "<string>"
}Successful Response
Response model for updating a Twilio number and associating it with a channel.
The updated Twilio phone number
"+18042221111"