curl https://production.methodfi.com/webhooks/whk_cSGjA6d9N8y8R \
-X PATCH \
-H "Method-Version: 2026-03-30" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{
"status": "active"
}'
const webhook = await method.webhooks.update('whk_cSGjA6d9N8y8R',{
status: 'active'
});
webhook = method.webhooks.update('whk_cSGjA6d9N8y8R',{
'status': 'active'
})
{
"id": "whk_cSGjA6d9N8y8R",
"type": "payment.update",
"url": "https://reference.example.app/webhook",
"metadata": null,
"expand_event": false,
"auth_token_delivery_encoding": null,
"headers": null,
"status": "active",
"error": null,
"created_at": "2025-09-09T00:41:05.647Z",
"updated_at": "2025-09-09T00:41:05.647Z"
}
Webhooks
Update a Webhook
PATCH
/
webhooks
/
{whk_id}
curl https://production.methodfi.com/webhooks/whk_cSGjA6d9N8y8R \
-X PATCH \
-H "Method-Version: 2026-03-30" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{
"status": "active"
}'
const webhook = await method.webhooks.update('whk_cSGjA6d9N8y8R',{
status: 'active'
});
webhook = method.webhooks.update('whk_cSGjA6d9N8y8R',{
'status': 'active'
})
{
"id": "whk_cSGjA6d9N8y8R",
"type": "payment.update",
"url": "https://reference.example.app/webhook",
"metadata": null,
"expand_event": false,
"auth_token_delivery_encoding": null,
"headers": null,
"status": "active",
"error": null,
"created_at": "2025-09-09T00:41:05.647Z",
"updated_at": "2025-09-09T00:41:05.647Z"
}
Update an existing Webhook’s status or custom delivery headers in place without recreating it. Send
status alone to disable or reactivate a Webhook, or send headers alone to replace or clear its custom headers.
Disabling a Webhook is a temporary action, allowing for it to be reactivated later, whereas Deleting a Webhook is a permanent action.
Path Parameters
Body
The status to set for the Webhook. Send
status alone; it cannot be combined with headers. One of active or disabledReplaces the Webhook’s custom delivery headers as a whole; send
null to clear them. Cannot be combined with status. Only active and requires_attention Webhooks can update headers (reactivate a disabled Webhook first). Up to 10 allowlisted headers; reserved headers such as Authorization and method-* cannot be set.Returns
Returns the updated Webhook object.curl https://production.methodfi.com/webhooks/whk_cSGjA6d9N8y8R \
-X PATCH \
-H "Method-Version: 2026-03-30" \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
-H "Content-Type: application/json" \
-d '{
"status": "active"
}'
const webhook = await method.webhooks.update('whk_cSGjA6d9N8y8R',{
status: 'active'
});
webhook = method.webhooks.update('whk_cSGjA6d9N8y8R',{
'status': 'active'
})
{
"id": "whk_cSGjA6d9N8y8R",
"type": "payment.update",
"url": "https://reference.example.app/webhook",
"metadata": null,
"expand_event": false,
"auth_token_delivery_encoding": null,
"headers": null,
"status": "active",
"error": null,
"created_at": "2025-09-09T00:41:05.647Z",
"updated_at": "2025-09-09T00:41:05.647Z"
}