- URL:
- https://[root]/portals/[portalID]/webhooks/listServiceWebhooks
- Methods:
POST
- Version Introduced:
- 11.3
Example usage
The following is a sample ArcGIS Enterprise POST request for the listServiceWebhooks operation:
POST /webadaptor/sharing/rest/portals/0123456789ABCDEF/webhooks/listServiceWebhooks HTTP/1.1
Host: machine.domain.complete
Content-Type: application/x-www-form-urlencoded
Content-Length: []
username=jSmith&f=pjson
Description
The list
operation returns a list of every service webhook from all servers federated with the organization. The response includes the configuration information for each webhook, as well as the item ID of the Enterprise portal item that the service is associated with.
Request parameters
Parameter | Details |
---|---|
(Optional) | Filters the results of the operation to return the webhooks owned by a specific user. If no value is provided, all webhooks (regardless of ownership) are returned. Example
|
| The response format. The default format is Values: |
Response properties
Parameter | Details |
---|---|
| The webhook ID. |
| The service's root folder name. |
| The name of the service the webhook is configured for. |
| The service type, either FeatureServer or GPServer. |
| The name of the webhook. |
| The event triggers that will invoke the webhook. Geoprocessing service webhooks do not have any configurable event triggers. Rather, the webhook is triggered when the geoprocessing job is successfully completed, canceled, or fails to complete. For feature service webhoks, this will list the configured event triggers. |
| A user-defined alphanumerical string used by ArcGIS Enterprise and the webhook receiver to ensure the authenticity of outogoing webhook requests. |
| The payload URL. |
| Indicates if callbacks are enabled ( Values: |
| The media type. Values: |
| Returned only for feature service webhooks. Shows the window for cataloging event triggers for a feature service. |
| The response payload format. Values: |
| Represents (in Unix time) when the webhook was created. |
| Represents (in Unix time) when the webhook was last modified. If the webhook was just created, this will return the same time information as |
| The username of the webhook owner. |
| The username of the member to last modify the webhook. |
| The portal item ID of the item associated with the service. |
JSON Response example
The response below shows two webhooks being returned, one feature service webhook and one geoprocessing service webhook:
{
"webhooks": [
{
"id": "6a02f41b-693d-4d2b-b313-13cc5a143629",
"folderName": "/",
"serviceName": "UtilityService",
"serviceType": "FeatureServer",
"name": "Utility Post Webhook",
"changeTypes": ["FeaturesPosted"],
"signatureKey": "",
"hookUrl": "https://app.logic.azure.com:443/workflows/dffb2e0433d245a3997e9d65a12f6ad2/triggers/manual/paths/invoke",
"active": true,
"contentType": "application/json",
"scheduleInfo": {
"name": "",
"state": "enabled",
"startAt": 1655307786699,
"recurrenceInfo": {
"interval": 20,
"frequency": "second"
}
},
"payloadFormat": "json",
"createdTime": 1708893065984,
"lastUpdatedTime": 1708893065984,
"owner": "admin",
"modifiedId": "admin",
"itemId": "214ae9c785324496b6ba19e904bc0840"
},
{
"id": "f1b628e0-68b6-45d3-9fd9-9d0d9052f89c",
"folderName": "gpserviceFolder",
"serviceName": "PerformQA",
"serviceType": "GPServer",
"name": "QA Webhook",
"changeTypes": "["*"]",
"signatureKey": "",
"hookUrl": "https://app.logic.azure.com:443/workflows/dffb2e0433d245a3997e9d65a12f6ad2/triggers/manual/paths/invoke",
"active": true,
"contentType": "application/json",
"scheduleInfo": {},
"payloadFormat": "json",
"createdTime": 1708893115388,
"lastUpdatedTime": 1708893115388,
"owner": "admin",
"modifiedId": "admin",
"itemId": "280a71645b0f4983968cea584b571b0e"
}
]
}