Skip to main content

@wildix/xbees-assistant-client > PostSettingsCommand

PostSettingsCommand class

Signature:

export declare class PostSettingsCommand extends PostSettingsCommand_base 

Extends: PostSettingsCommand_base

Example

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

import { AssistantClient, PostSettingsCommand } from "@wildix/xbees-assistant-client"; // ES Modules import
// const { AssistantClient, PostSettingsCommand } = require("@wildix/xbees-assistant-client"); // CommonJS import
const client = new AssistantClient(config);
const input = { // PostSettingsInput
label: "STRING_VALUE", // required
prompt: "STRING_VALUE", // required
};
const command = new PostSettingsCommand(input);
const response = await client.send(command);
// { // PostSettingsOutput
// result: { // UserCommandData
// id: "STRING_VALUE", // required
// label: "STRING_VALUE", // required
// type: "prompt" || "summary" || "rephrase" || "reply" || "expand" || "shorten" || "explain" || "translate", // required
// prompt: "STRING_VALUE", // required
// },
// };