- URL:
- https://<webhooks-url>/<webhookID>/edit
- Methods:
POST
- Version Introduced:
- June, 2020
Description
The owner or admin of a feature service can edit existing webhook configuration parameter.
Request parameters
Parameter | Details |
---|---|
name (Required) | Specifies the webhook's name. Syntax: String |
change ("Events") | Defines the events that will trigger the webhook. The default is Values: |
signature (Optional) | If specified, the secret key will be used in generating the HMAC hex digest of value using sha256 hash function and is return in the Syntax: String
|
hook Url (Required) | Identifies the payload URL. Syntax: String
|
active (Optional) | Enable or disable call backs when the webhook is triggered. The default is Values: |
content | The Content Type is used to indicate the media type of the resource. The media type is a string sent along with the file indicating the format of the file. Values: |
schedule (Optional) | Sets the schedule properties of a webhook. Syntax
Example
|
payload | The response pay load format. The default format is Values: |
f | The response format. The default format is Values: |
Trigger event values
Below are the accepted values, and descriptions, for the change
parameter:
Values | Description |
---|---|
* | Wildcard event. Any time any event is triggered. |
Features | A new feature is created. |
Features | A feature is updated. |
Features | A feature is deleted. |
Features | A feature is edited (insert or update or delete) |
Attachments | A new attachment is added to a feature. |
Attachments | A feature attachment is updated. |
Attachments | A feature attachment is deleted. |
Layer | A schema is changed in a layer. |
Layer | A layer definition is changed. |
Feature | A feature service is changed. |
Example usage
Below is a sample request URL for edit
:
https://gisserver.example.com/<context>/rest/admin/services/states/FeatureServer/WebHooks/1/edit
Example 1: Here's how you can edit a webhook that posts payloads in JSON format:
{
"active": true,
"changeTypes": [
"FeaturesCreated"
],
"hookUrl": "http://webhookUrl/webhook"
}
JSON Response example
{
"id": 1,
"url": "https://gisserver.example.com/<context>/ArcGIS/rest/admin/services/states/FeatureServer/WebHooks/1",
"name": "myHook",
"changeTypes": [
"FeatureCreated"
],
"active": true,
"hookUrl": "https://webhookUrl/webhook",
"createdTime": "1526405454399",
"lastUpdatedTime": "1526405454399"
}