You can create two types of webhooks – resource-scoped or model element-scoped. Resource-scoped webhooks listen for resource-commit events. Webhooks that are element-scoped listen for model element commit events.
Tagged commit events, i.e., events when a resource is committed with specific commit tags, are only available for resource-scoped webhooks.
Creating resource-scoped webhooks
To create a resource-scoped webhook
- Go to the Settings application and select Webhooks on the left side of the screen.
- In the bottom right corner of the screen, click to open the wizard for creating a webhook.
- In the first step of the wizard, type in the Webhook title and Webhook URL.
- Select Resource as the Webhook scope. With this webhook scope, you can also select Commit or Tagged commit event.
For the option of Tagged commit, enter the commit tags to listen for: - For the webhook to work, keep the option Enable turned on.
- You can also choose to Protect webhook URL with basic authentication. If you choose this option, enter the username and password:
- Click Next.
- In the second step of the wizard, select the Resource scope of the webhook. You can select either the Resource or Category option and search for a resource or a category in the search field:
- Once you select the resources or categories, click Create to create your webhook.
Creating model element-scoped webhooks
To create a model element-scoped webhook
- Go to the Settings application and select Webhooks on the left side of the screen.
- In the bottom right corner of the screen, click to open the wizard for creating a webhook.
- In the first step of the wizard, type in the Webhook title and Webhook URL.
- Select Model element as the Webhook scope.
Note that Tagged commit is not available for this option: - 721pxFor the webhook to work, keep the option Enable turned on.
- You can also choose to Protect webhook URL with basic authentication. If you choose this option, enter the username and password:
- Click Next.
- In the second step of the wizard, select the Resource scope of the webhook. You can select either the Resource or Category option and search for a resource or a category in the search field:
- Click Next.
- In the next step select the Element scope.
You can also check the Select recursively box if you want to include the element and its child elements into the webhook scope. If Select recursively is left unchecked, only the selected element will be included in the webhook scope: - After making your selections, click Create to finish creating your new webhook.