Hooks
Update an existing hook
Update an existing hook with the TypeScript SDK.
PUT
Update an existing hook
Use
blnk.Hooks.update to change the configuration of an existing webhook.
blnk.Hooks.update
| Field | Description |
|---|---|
id | ID of the hook to update. |
name | Descriptive name for the hook. |
url | Endpoint URL Blnk calls when the hook runs. |
type | PRE_TRANSACTION or POST_TRANSACTION. |
active | Whether the hook is enabled. |
timeout | Maximum time in seconds allowed for the hook to execute. |
retry_count | Maximum number of retry attempts if the hook fails. |
Response shape
200 OK
| Field | Description |
|---|---|
id | Unique ID for the hook. |
created_at | Date and time the hook was created. |
last_run | Date and time the hook last executed. |
last_success | Whether the most recent execution succeeded. |
Related docs
How webhooks work
Hook types, payloads, and execution.
Update an existing hook
HTTP request and response schema.