Skip to main content

@wildix/xbees-users-client > UpdateUserEmailNotificationsSettingsCommand

UpdateUserEmailNotificationsSettingsCommand class

Update user email notifications settings

Signature:

export declare class UpdateUserEmailNotificationsSettingsCommand extends UpdateUserEmailNotificationsSettingsCommand_base 

Extends: UpdateUserEmailNotificationsSettingsCommand_base

Example

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

import { UsersClient, UpdateUserEmailNotificationsSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, UpdateUserEmailNotificationsSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // UpdateUserEmailNotificationsSettingsInput
unread: true || false,
transcription: true || false,
userId: "STRING_VALUE", // required
};
const command = new UpdateUserEmailNotificationsSettingsCommand(input);
const response = await client.send(command);
// { // UpdateUserEmailNotificationsSettingsOutput
// notifications: { // UserEmailNotificationsSettings
// unread: true || false, // required
// transcription: true || false, // required
// },
// };