onSectionUpdated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:

Triggered when a section is updated.

Permissions
Manage Bookings Services and Settings
Manage Events
Manage Portfolio
Access Verticals by Automations
Set Up Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function onSectionUpdated(handler: function): void;
Method Parameters
handlerfunction

handler(event: SectionUpdatedEnvelope): void | Promise<void>

JavaScript
import { sections } from "@wix/restaurants"; sections.onSectionUpdated((event) => { // handle your event here });
Did this help?