@wildix/xbees-users-client > UnlinkWorkspaceCommand
UnlinkWorkspaceCommand class
Removes the connection between the account and a workspace.
Signature:
export declare class UnlinkWorkspaceCommand extends UnlinkWorkspaceCommand_base
Extends: UnlinkWorkspaceCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { UsersClient, UnlinkWorkspaceCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, UnlinkWorkspaceCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // UnlinkWorkspaceInput
workspaceId: "STRING_VALUE", // required
accountId: "STRING_VALUE", // required
};
const command = new UnlinkWorkspaceCommand(input);
const response = await client.send(command);
// {};