Skip to main content

@wildix-internal/wim-calendar-client > CancelEventCommand

CancelEventCommand class

Signature:

export declare class CancelEventCommand extends CancelEventCommand_base 

Extends: CancelEventCommand_base

Example

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

import { WimCalendarClient, CancelEventCommand } from "@wildix-internal/wim-calendar-client"; // ES Modules import
// const { WimCalendarClient, CancelEventCommand } = require("@wildix-internal/wim-calendar-client"); // CommonJS import
const client = new WimCalendarClient(config);
const input = { // CancelEventInput
ownerId: "STRING_VALUE", // required
eventId: "STRING_VALUE", // required
reason: "STRING_VALUE",
};
const command = new CancelEventCommand(input);
const response = await client.send(command);
// { // CancelEventOutput
// success: true || false, // required
// result: { // CancelEventOutputResult
// event: { // CalendarEvent
// id: "STRING_VALUE", // required
// calendarId: "STRING_VALUE", // required
// summary: "STRING_VALUE", // required
// description: "STRING_VALUE",
// start: "STRING_VALUE", // required
// end: "STRING_VALUE", // required
// owner: "STRING_VALUE", // required
// status: "confirmed" || "tentative" || "cancelled", // required
// attendees: [ // CalendarEventAttendeeList // required
// { // CalendarEventAttendee
// email: "STRING_VALUE", // required
// name: "STRING_VALUE",
// status: "accepted" || "tentative" || "declined" || "none", // required
// },
// ],
// type: "default" || "outOfOffice", // required
// transparency: "opaque" || "transparent", // required
// visibility: "public" || "private" || "confidential", // required
// },
// },
// };