updateEvent( )


Updates an event.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Events
Learn more about app permissions.
Method Declaration
Copy
function updateEvent(
  _id: string,
  options: UpdateEventOptions,
): Promise<V3Event>;
Method Parameters
_idstringRequired

Event ID.


optionsUpdateEventOptions

Optional fields.

Returns
Return Type:Promise<V3Event>
JavaScript
import { wixEventsV2 } from "@wix/events"; async function updateEvent(id, options) { const response = await wixEventsV2.updateEvent(id, options); }
Errors
400Invalid Argument

There are 2 errors with this status code.

428Failed Precondition

There are 2 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?