Skip to main content

Setup Webhooks

The module supports automatically updating courses when changes are made in Eduframe using webhooks. We highly recommend setting this up right after installation.

Create a webhook in Eduframe

  1. In Eduframe, go to Settings → Webhooks.
  2. Add a new webhook with the URL: YOUR_WEBSITE_DOMAIN/webhook/eduframe/v1 (replace YOUR_WEBSITE_DOMAIN with your site’s domain).
  3. Select the following events to keep your site in sync:
  • catalog_variant.created, catalog_variant.updated, catalog_variant.deleted
  • product.created, product.updated, product.deleted
  • user.created, user.updated, user.deleted
  • label.created, label.updated, label.deleted
  • course_location.created, course_location.updated, course_location.deleted
  • course_variant.created, course_variant.updated, course_variant.deleted
  • category.created, category.updated, category.deleted

More information about webhooks can be found here: Configure Webhooks.

Add the webhook secret

After creating the webhook, copy the webhook secret from Eduframe and paste it in Drupal under ConfigurationWeb servicesEduframeEduframe Service in the field Webhook secret. This secures your site by only accepting webhooks sent by Eduframe.