@wildix/xbees-users-client > UpdateAccountCommand
UpdateAccountCommand class
Updates the account. Allows changing default workspace and primary identity.
Signature:
export declare class UpdateAccountCommand extends UpdateAccountCommand_base
Extends: UpdateAccountCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { UsersClient, UpdateAccountCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, UpdateAccountCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // UpdateAccountInput
accountId: "STRING_VALUE", // required
defaultWorkspace: "STRING_VALUE",
primaryIdentity: "STRING_VALUE",
};
const command = new UpdateAccountCommand(input);
const response = await client.send(command);
// { // UpdateAccountOutput
// account: { // Account
// id: "STRING_VALUE", // required
// defaultWorkspace: "STRING_VALUE",
// primaryIdentity: "STRING_VALUE",
// },
// };