Skip to main content

@wildix/xbees-users-client > ChangeUserEmailCommand

ChangeUserEmailCommand class

Schedules user's email changing.

Signature:

export declare class ChangeUserEmailCommand extends ChangeUserEmailCommand_base 

Extends: ChangeUserEmailCommand_base

Example

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

import { UsersClient, ChangeUserEmailCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, ChangeUserEmailCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // ChangeUserEmailInput
newData: { // NewEmailData
email: "STRING_VALUE", // required
companyId: "STRING_VALUE",
pbxDomain: "STRING_VALUE",
},
oldData: { // OldEmailData
email: "STRING_VALUE", // required
companyId: "STRING_VALUE",
},
};
const command = new ChangeUserEmailCommand(input);
const response = await client.send(command);
// { // ChangeUserEmailOutput
// sfnArn: "STRING_VALUE", // required
// };