@wildix/wms-api-client > CreatePbxColleagueCommand
CreatePbxColleagueCommand class
Signature:
export declare class CreatePbxColleagueCommand extends CreatePbxColleagueCommand_base
Extends: CreatePbxColleagueCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WmsApiClient, CreatePbxColleagueCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, CreatePbxColleagueCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = { // CreatePbxColleagueInput
extension: "STRING_VALUE", // required
name: "STRING_VALUE", // required
officePhone: "STRING_VALUE",
mobilePhone: "STRING_VALUE",
faxNumber: "STRING_VALUE",
email: "STRING_VALUE",
role: "admin" || "user" || "fax" || "park_orbit" || "room",
groupDn: "STRING_VALUE",
language: "STRING_VALUE",
dialplan: "STRING_VALUE",
faxDialplan: "STRING_VALUE",
department: "STRING_VALUE",
login: "STRING_VALUE",
password: "STRING_VALUE",
sipPassword: "STRING_VALUE",
licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf",
};
const command = new CreatePbxColleagueCommand(input);
const response = await client.send(command);
// { // CreatePbxColleagueOutput
// type: "result" || "error", // required
// result: { // PbxColleague
// id: "STRING_VALUE", // required
// name: "STRING_VALUE",
// login: "STRING_VALUE",
// extension: "STRING_VALUE", // required
// officePhone: "STRING_VALUE",
// mobilePhone: "STRING_VALUE",
// faxNumber: "STRING_VALUE",
// email: "STRING_VALUE",
// pbxDn: "STRING_VALUE", // required
// pbx: "STRING_VALUE", // required
// role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
// groupName: "STRING_VALUE", // required
// groupDn: "STRING_VALUE", // required
// language: "STRING_VALUE", // required
// dialplan: "STRING_VALUE", // required
// faxDialplan: "STRING_VALUE", // required
// department: "STRING_VALUE",
// picture: "STRING_VALUE", // required
// sourceId: "STRING_VALUE",
// licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
// jid: "STRING_VALUE", // required
// },
// };