Skip to main content

@wildix/xbees-users-client > UpdateBotCallbackCommand

UpdateBotCallbackCommand class

Signature:

export declare class UpdateBotCallbackCommand extends UpdateBotCallbackCommand_base 

Extends: UpdateBotCallbackCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { UsersClient, UpdateBotCallbackCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, UpdateBotCallbackCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // UpdateBotCallbackInput
company: "STRING_VALUE",
botId: "STRING_VALUE", // required
callback: { // BotCallback
endpoint: { // BotEndpoint Union: only one key present
dialogflowCx: { // BotDialogflowCxEndpoint
credentials: "DOCUMENT_VALUE", // required
agent: "STRING_VALUE", // required
location: "STRING_VALUE", // required
language: "STRING_VALUE", // required
},
openAiAssistant: { // BotOpenAiAssistantEndpoint
key: "STRING_VALUE", // required
assistantId: "STRING_VALUE", // required
},
webhook: { // BotWebhookEndpoint
url: "STRING_VALUE", // required
secret: "STRING_VALUE", // required
},
sqs: { // BotSqsEndpoint
url: "STRING_VALUE", // required
key: "STRING_VALUE", // required
secret: "STRING_VALUE", // required
},
},
},
};
const command = new UpdateBotCallbackCommand(input);
const response = await client.send(command);
// { // UpdateBotCallbackOutput
// callback: { // BotCallback
// endpoint: { // BotEndpoint Union: only one key present
// dialogflowCx: { // BotDialogflowCxEndpoint
// credentials: "DOCUMENT_VALUE", // required
// agent: "STRING_VALUE", // required
// location: "STRING_VALUE", // required
// language: "STRING_VALUE", // required
// },
// openAiAssistant: { // BotOpenAiAssistantEndpoint
// key: "STRING_VALUE", // required
// assistantId: "STRING_VALUE", // required
// },
// webhook: { // BotWebhookEndpoint
// url: "STRING_VALUE", // required
// secret: "STRING_VALUE", // required
// },
// sqs: { // BotSqsEndpoint
// url: "STRING_VALUE", // required
// key: "STRING_VALUE", // required
// secret: "STRING_VALUE", // required
// },
// },
// },
// };