@wildix/xbees-conversations-client > UnpinChannelCommand
UnpinChannelCommand class
Removes pin flag from the the channel.
Signature:
export declare class UnpinChannelCommand extends UnpinChannelCommand_base
Extends: UnpinChannelCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, UnpinChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, UnpinChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // UnpinChannelInput
channelId: "STRING_VALUE", // required
userId: "STRING_VALUE",
};
const command = new UnpinChannelCommand(input);
const response = await client.send(command);
// {};