If your data source supports scheduled publishing, you can add logic for handling scheduled actions to your connector using connector.scheduledActions().
Netlify will check for the presence of all scheduled action methods to verify that scheduled publishing is supported with the visual editor.
Add support for scheduled actions
To support scheduled actions, you must implement mutation handlers using connector.scheduledActions(). Netlify will call these functions when users manage scheduled actions in the visual editor.
We recommend that you configure your connector to support updating scheduled actions using webhooks to help ensure updates propagate back into the connector.
For example:
Sync scheduled actions data
To load scheduled actions data into the user’s site, use the models.ScheduledAction interface that is exposed to the connector.sync callback.
For example:
If your data source supports webhooks, you may trigger updates to scheduled actions data using incoming webhooks. We’ll invoke the sync method in response to an incoming webhook: