// This is Generated Source. import ExtensionCallerIdInfo from "../definitions/ExtensionCallerIdInfo"; import PathSegment from "../PathSegment"; export default class CallerId extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("caller-id", id, prv, service); } /** *

Since 1.0.28 (Release 8.4)

Returns information on an outbound caller ID of an extension.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Light

*/ get(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.28 (Release 8.4)

Returns information on an outbound caller ID of an extension.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Light

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } /** *

Since 1.0.28 (Release 8.4)

Updates outbound caller ID information of an extension.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating my extension info (includes extension name, number, email and phone number)

API Group

Medium

*/ put(body: ExtensionCallerIdInfo): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.28 (Release 8.4)

Updates outbound caller ID information of an extension.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating my extension info (includes extension name, number, email and phone number)

API Group

Medium

* return {ApiResponse} */ putRaw(body: ExtensionCallerIdInfo): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }); } }