@wildix/xbees-users-client > UpdateBotCommand
UpdateBotCommand class
Signature:
export declare class UpdateBotCommand extends UpdateBotCommand_base
Extends: UpdateBotCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { UsersClient, UpdateBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, UpdateBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // UpdateBotInput
company: "STRING_VALUE",
botId: "STRING_VALUE", // required
name: "STRING_VALUE", // required
picture: "STRING_VALUE",
searchable: true || false,
};
const command = new UpdateBotCommand(input);
const response = await client.send(command);
// { // UpdateBotOutput
// bot: { // Bot
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// picture: "STRING_VALUE",
// searchable: true || false,
// createdAt: "STRING_VALUE", // required
// updated: "STRING_VALUE",
// },
// };