Update an existing webhook subscription configuration.
curl --request PATCH \
--url https://api.passentry.com/api/v1/webhook-subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhookSubscription": {
"url": "https://example.com/webhook/updated",
"enabled": false,
"subscribedEvents": [
"passInstalled",
"passRemoved",
"passCreated"
]
}
}
'{
"data": {
"id": "01983282-53cf-7e16-b5e1-dd0de4ce02fa",
"type": "webhookSubscription",
"attributes": {
"url": "https://example.com/webhook/updated",
"secretKey": "a2e2c04657b924390d2a2623439c65734d07e0f8",
"enabled": false,
"scopeType": "organisation",
"scopeName": "Test Organisation",
"subscribedEvents": [
"passInstalled",
"passRemoved",
"passCreated"
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Webhook subscription ID
Webhook subscription update configuration
Show child attributes
HTTPS URL that will receive webhook events
"https://example.com/webhook"
Whether the webhook subscription is active
List of events to subscribe to
1passInstalled, passRemoved, passScanned, passCreated Webhook subscription updated successfully
Show child attributes
Unique identifier for the webhook subscription
"01983282-53cf-7e16-b5e1-dd0de4ce02fa"
Type of the resource
webhookSubscription Show child attributes
HTTPS URL that will receive webhook events
"https://example.com/webhook"
Secret key used to sign webhook payloads
"a2e2c04657b924390d2a2623439c65734d07e0f8"
Whether the webhook subscription is active
Scope type for the webhook subscription
organisation, entity Name of the scope
"Test Organisation"
List of events subscribed to
passInstalled, passRemoved, passScanned, passCreated Was this page helpful?
curl --request PATCH \
--url https://api.passentry.com/api/v1/webhook-subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhookSubscription": {
"url": "https://example.com/webhook/updated",
"enabled": false,
"subscribedEvents": [
"passInstalled",
"passRemoved",
"passCreated"
]
}
}
'{
"data": {
"id": "01983282-53cf-7e16-b5e1-dd0de4ce02fa",
"type": "webhookSubscription",
"attributes": {
"url": "https://example.com/webhook/updated",
"secretKey": "a2e2c04657b924390d2a2623439c65734d07e0f8",
"enabled": false,
"scopeType": "organisation",
"scopeName": "Test Organisation",
"subscribedEvents": [
"passInstalled",
"passRemoved",
"passCreated"
]
}
}
}