Hooks
Update an existing hook
Update an existing hook with the Python SDK.
PUT
Update an existing hook
Use
blnk.hooks.update to change the configuration of an existing webhook.
Call the method
blnk.hooks.update
| Field | Type | Description |
|---|---|---|
id | str | ID of the hook to update. |
name | str | Descriptive name for the hook. |
url | str | Endpoint URL Blnk calls when the hook runs. |
type | str | PRE_TRANSACTION or POST_TRANSACTION. |
active | bool | Whether the hook is enabled. |
timeout | number | Maximum time in seconds allowed for the hook to execute. |
retry_count | number | Maximum number of retry attempts if the hook fails. |
Verify the changes
Read
response.data to confirm the updated URL, type, and active status. The hook ID stays the same.Related docs
How webhooks work
Hook types, payloads, and execution.
Update an existing hook
HTTP request and response schema.