PUT
/
api
/
v1
/
channels
/
Typescript (SDK)
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.channels.update({
    name: "twilio",
    channelService: "webchat",
    supportedModes: "chat,voice",
    config: {
      accountSid: "AC123...",
      authToken: "sometoken",
      telephony: {
        preInputTimeout: 1.2,
        overallInputTimeout: 20,
      },
    },
    id: 1,
  });

  // Handle the result
  console.log(result);
}

run();
{
  "name": "syllable-webchat",
  "channel_service": "webchat",
  "supported_modes": "chat,voice",
  "is_system_channel": false,
  "id": 123,
  "config": {
    "telephony": {
      "overall_input_timeout": 20,
      "pre_input_timeout": 1.2
    }
  }
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Request model to update a channel through the organizations API

Response

200
application/json

Successful Response

The response is of type object.