GET
/{orgId}/{itemId}/webhookConnections/{connectionId}Gets a webhook connection from Workflow Manager.
Note: See Webhooks in ArcGIS Online for the privileges required to manage service webhooks.
The following information is returned in the webhook connection object:
- connectionId: The webhook connection ID.
- connectionName: The webhook connection name.
- itemId: The service item ID for the webhook.
- secret: The secret key to be used when executing the service webhook.
- enabled: If
true, Workflow Manager will process incoming webhooks. Iffalse, Workflow Manager will not process incoming webhooks. - username: The username of the user designated to perform the actions triggered by a webhook, if one is designated.
- fallbackUsername: The username of the alternate user designated to perform the actions triggered by a webhook, if one is designated.
- webhookType: The type of service webhook associated with the webhook connection. Only
FeatureServiceis accepted.
If a service webhook has been created for this webhook connection and the user has privileges to manage the service webhook, the following information is also included:
- webhookActive:
trueif the service webhook is active, andfalseif it is inactive. - webhookChangeTypes: List of events that will trigger the associated service webhook.
- managedWebhookId: The ID of the service webhook.
Query parameters
| Name | Type | Required |
|---|---|---|
token | string¦null |
Path parameters
| Name | Type | Required |
|---|---|---|
connection | string | |
org | string | |
item | string |
Response status
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | A webhook connection object | WebhookConnectionResponse |
| 400 | Bad Request | error | WorkflowExceptionDTO |
Examples
Request
# You can also use wget
curl -X GET '/{orgId}/{itemId}/webhookConnections/{connectionId}' \
-H 'Authorization: Bearer <YOUR_TOKEN>'Response
{
"connectionId": "string",
"connectionName": "string",
"itemId": "string",
"webhookType": "FeatureService",
"secret": "string",
"enabled": true,
"webhookActive": true,
"webhookChangeTypes": [
"FeaturesUpdated"
],
"username": "string",
"fallbackUsername": "string",
"managedWebhookId": "string"
}