Skip to main content

Events

Events define when to trigger a notification for a webhook. For example, whenever a post is published user receives a notification on Slack or Google Chat.

Webhooks#

Webhooks are used to notify the users when defined events have occurred. These allow Dega to send POST requests to user-configured URLs to send them a notification about it. The request contains a triggered event and the result could be a notification on the set URL. To use webhooks, setting up Hukz is required. Hukz is a simple & lightweight service implemented in GO to add webhooks to your application. This service is intended to fire webhooks on different events that are registered. Webhook can be added from the Webhook menu item by clicking on New Webhook. Webhooks can be added only by admins of the organization.

The user can add default events supported by Dega by clicking on Create default events. Events can be added only by the super organization. While creating webhook supported events are assigned to a webhook.

All the Events will be available under the Events menu. Events can be deleted by clicking on the Delete button. To edit an event click on the name of the event in the list.

The events supported in Dega are listed below:

EventsDescription
Create CategoryTriggered when a category is added
Update CategoryTriggered when a category is edited
Delete CategoryTriggered when a category is deleted
Create FormatTriggered when a format is added
Update FormatTriggered when a format is edited
Delete FormatTriggered when a format is deleted
Create MediaTriggered when a media is added
Update MediaTriggered when a media is edited
Delete MediaTriggered when a media is deleted
Create MenuTriggered when a menu is added
Update MenuTriggered when a menu is edited
Delete MenuTriggered when a menu is deleted
Create PostTriggered when a post is added
Update PostTriggered when a post is edited
Delete PostTriggered when a post is deleted
Create TemplateTriggered when a template is created
Publish PostTriggered when a post is published
Unpublish PostTriggered when a post is unpublished
Ready PostTriggered when a post is saved as Ready to Publish
Create SpaceTriggered when a space is added
Update SpaceTriggered when a space is edited
Delete SpaceTriggered when a space is deleted
Create TagTriggered when a tag is added
Update TagTriggered when a tag is edited
Delete TagTriggered when a tag is deleted
Create ClaimTriggered when a claim is added
Update ClaimTriggered when a claim is edited
Delete ClaimTriggered when a claim is deleted
Create ClaimantTriggered when a claimant is added
Update ClaimantTriggered when a claimant is edited
Delete ClaimantTriggered when a claimant is deleted
Create RatingTriggered when a rating is added
Update RatingTriggered when a rating is edited
Delete RatingTriggered when a rating is deleted
Create PodcastTriggered when a podcast is added
Update PodcastTriggered when a podcast is edited
Delete PodcastTriggered when a podcast is deleted
Create EpisodeTriggered when a episode is added
Update EpisodeTriggered when a episode is edited
Delete EpisodeTriggered when a episode is deleted
Create PolicyTriggered when a policy is added
Update PolicyTriggered when a policy is updated