Update webhook
Updates a webhook URL, event types, filters, or status. The signing secret is not returned after creation.
Authorizations
Canonical API-key credential. Send X-API-Key: cns_pk_..., or Authorization: Bearer cns_pk_... only as an API-key compatibility alias. OAuth and JWT bearer tokens are not supported.
Path Parameters
Webhook subscription ID.
Body
Replacement HTTPS endpoint URL.
Enable or disable delivery.
active, disabled Replacement subscribable event types. On update, omitted eventTypes leaves the current value unchanged; null or an empty array resets to agreement.transitioned.
agreement.transitioned, agreement.notification.triggered Optional filters applied before delivery. agreementIds and templateIds apply to both agreement.transitioned and agreement.notification.triggered. inputIds, fromStates, and toStates apply to agreement.transitioned and to notification events with transition data. ruleIds apply to agreement.notification.triggered events.
Response
Updated webhook subscription.
{
"id": "wh_123",
"principalId": "principal_123",
"url": "https://example.com/shodai/webhooks",
"status": "active",
"eventTypes": [
"agreement.transitioned",
"agreement.notification.triggered"
],
"filters": {
"templateIds": ["did:template:service-retainer-v0-1"],
"ruleIds": ["deployment-follow-up"]
},
"createdAt": "2026-05-26T16:00:00.000Z",
"updatedAt": "2026-05-26T16:00:00.000Z"
}