// This is Generated Source. import BotExtensionCreation from "../definitions/BotExtensionCreation"; import BotExtensionCreationRequest from "../definitions/BotExtensionCreationRequest"; import PathSegment from "../PathSegment"; export default class Bot extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("bot", id, prv, service); } /** *

Since 1.0.32 (Release 9.3)

Creates a bot extension. Please note: Bot extension is always created in Enabled status, no welcome email is sent.

Required Permissions

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

API Group

Medium

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

Since 1.0.32 (Release 9.3)

Creates a bot extension. Please note: Bot extension is always created in Enabled status, no welcome email is sent.

Required Permissions

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

API Group

Medium

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