Skip To Content ArcGIS for Developers Sign In Dashboard

Web Hooks (Feature Service)

Description

Note:
Only ArcGIS feature services offers support for this operation.

Webhooks allow you to build or set up ArcGIS applications which subscribe to certain events on ArcGIS services. When one of those events is triggered, the configured service will send a HTTP POST payload to the webhook's configured URL.

The Webhooks resource returns a list of all the webhooks for an feature service. This will include both activated and deactivated webhooks.

Note:
To enable webhooks, the feature service Editing and ChangeTracking capability must be enabled to track layer changes.

Request parameters

PropertyDetails
f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample request URL used to access the Webhooks resource:

https://myserver.domain.com/myTenant/ArcGIS/rest/admin/services/states/FeatureServer/WebHooks?f=json

JSON Response example

[
  {
    "name": "WebHooks", 
    "owner": "eddie", 
    "id": 9, 
    "globalId": "c740ae24-92a1-4fd2-9a3b-53219bd221e9", 
    "tenantId": 01, 
    "serviceId": 560100, 
    "active": true, 
    "hookUrl": "https://webhookURL", 
    "serviceUrl": "https://myserver.domain.com/tenantID/ArcGIS/rest/services/WebHooks/FeatureServer", 
    "signatureKey": "", 
    "format": "json", 
    "serverGen": 8104206, 
    "createdTime": 1589773034742, 
    "lastUpdatedTime": 1589773034742, 
    "changeTypes": [
      "All"
    ], 
    "scheduleInfo": {
      "name": "Every-40seconds", 
      "state": "enabled", 
      "recurrenceInfo": {
        "frequency": "second", 
        "interval": 40
      }
    }
  }, 
  {
    "name": "WebHooks2", 
    "owner": "eddie", 
    "id": 10, 
    "globalId": "6e2705e5-55fe-4bb6-82d5-3ceis83lb95f", 
    "tenantId": 01, 
    "serviceId": 560100, 
    "active": false, 
    "hookUrl": "https://webhookURL", 
    "serviceUrl": "https://myserver.domain.com/tenantID/ArcGIS/rest/services/WebHooks/FeatureServer", 
    "signatureKey": "", 
    "format": "json", 
    "serverGen": 8118854, 
    "createdTime": 1589836353855, 
    "lastUpdatedTime": 1589836636586, 
    "changeTypes": [
      "All"
    ], 
    "scheduleInfo": {
      "name": "Every-30seconds", 
      "state": "enabled", 
      "recurrenceInfo": {
        "frequency": "second", 
        "interval": 30
      }
    }
  }
]