Did you know you can create a new webhook in ArcGIS Online? This blog article explains how to create a new webhook from a hosted feature service, but first, a little background?
A webhook allows web services to provide other services with near real-time information using HTTP POST requests. Webhooks are user-defined HTTP callbacks that are usually triggered by an event, such as editing or syncing a feature or changing the layer metadata. When that event occurs, the configured source such as a hosted feature service makes HTTP request to the URL configured for the webhook.
Webhooks can be turned on in an organization or a specific ArcGIS service such as a hosted feature service. Once it’s configured, the webhook is triggered each time one or more subscribed events occurs.
Note:An owner or administrator of the hosted feature service can create webhooks.
Note:Here is a blog that explains how to create a hosted feature service .
Before you can create a webhook, you must modify the service URL by adding admin / between rest/ and services so the URL looks like the following.
https://services.arcgis.com/tenantID/ArcGIS/rest/ admin /services/ServiceName/FeatureServer?
On the service URL page, scroll down to the Supported Operations options and click Web Hooks .
On the service URL admin Web Hooks page, click Create .
The Create operation allows administrators to create a webhook. You can specify the trigger events for this webhook and the URL to which the payloads are delivered when the webhook is invoked.
Note:Multiple webhooks can be created and multiple webhooks can share the same callback URL.
Fill out the form and create a webhook.
When you have completed the form, click Create to create the webhook.
Congratulations! You created a webhook!
The following image is a sample webhook containing the information you provided in the webhook form.
The following image lists the webhooks for a hosted feature service:
Eddie is a Product Engineer on the ArcGIS Online team and works primarily with the Hosted Feature Service. Our ArcGIS Online team is at the heart of the ArcGIS platform and I have the passion for problem solving to fulfill the needs of the Esri user community by pushing the envelope of Hosted Feature Service capabilities provided by ArcGIS.