Webhooks
To learn the basic concepts of WebHooks in sensenet, please visit this article. In this article you'll learn how can you subscribe to webhooks and how can you handle the requests sensenet makes.
Subscribing to WebHooks
To define a webhook subscription, go to the Settings section in admin UI. Creating a new subscription is as easy as providing the target service to call and defining the range of content changes and types that interests you.
HTTP method of the request
sensenet offers you to choose the HTTP method to use when calling the target service. This may be useful when you have a predefined 3rd party service that expects a specific method, other than the default POST.
Target URL
This is the URL of the service to call when an event triggers the webhook. The service can be developed in any language on any platform - the only requirement is for it to understand an HTTP request sent by sensenet containing the payload described below. This target service may be a serverless cloud function, an ASP.NET MVC controller method or a Node.js action - basically anything.
Event trigger
Content changes will trigger a WebHook event. First you need to specify the container where you want to monitor content items. This is usually one of your workspaces, libraries - or the /Root/Content root.