Actions252
- Api Keys Actions
- Attachments Actions
- Blocklists Actions
- Calendar Channel Event Associations Actions
- Find Many Calendar Channel Event Associations
- Create One Calendar Channel Event Association
- Create Many Calendar Channel Event Associations
- Find One Calendar Channel Event Association
- Delete One Calendar Channel Event Association
- Update One Calendar Channel Event Association
- Find Calendar Channel Event Association Duplicates
- Companies Actions
- Calendar Channels Actions
- Calendar Event Participants Actions
- Calendar Events Actions
- Connected Accounts Actions
- Favorite Folders Actions
- Favorites Actions
- Message Channel Message Associations Actions
- Find Many Message Channel Message Associations
- Create One Message Channel Message Association
- Create Many Message Channel Message Associations
- Find One Message Channel Message Association
- Delete One Message Channel Message Association
- Update One Message Channel Message Association
- Find Message Channel Message Association Duplicates
- Message Channels Actions
- Message Folders Actions
- View Fields Actions
- Message Participants Actions
- Messages Actions
- Message Threads Actions
- Notes Actions
- Note Targets Actions
- Opportunities Actions
- People Actions
- Tasks Actions
- Task Targets Actions
- Timeline Activities Actions
- View Filter Groups Actions
- View Filters Actions
- View Groups Actions
- Views Actions
- View Sorts Actions
- Webhooks Actions
- Workflow Automated Triggers Actions
- Workflow Runs Actions
- Workflows Actions
- Workflow Versions Actions
- Workspace Members Actions
Overview
The node updates a single webhook configuration in the Twenty API. It allows users to modify properties of an existing webhook such as its target URL, description, secret for HMAC signature verification, and the operations that trigger the webhook. This is useful when you need to change where webhook events are sent or update security settings without creating a new webhook.
Practical examples:
- Changing the target URL if your receiving service endpoint changes.
- Updating the secret key used to authenticate incoming webhook requests.
- Modifying which events (operations) the webhook listens to.
Properties
| Name | Meaning |
|---|---|
| Id | The unique identifier of the webhook object to update. |
| Depth | Determines how much related nested data to include in the response: - 0: Only the primary webhook object. - 1: Primary object plus directly related objects. - 2: Includes related objects of related objects. |
| Target Url | The URL where the webhook payloads will be sent. |
| Description | A textual description of the webhook. |
| Secret | An optional secret string used to compute the HMAC signature for webhook payloads, enabling authentication of webhook requests between Twenty and the consumer. |
| Operations | JSON array defining which webhook operations/events this webhook should listen to. |
Output
The node outputs the updated webhook object in the json field of the output data. This includes all the webhook's properties after the update, potentially including nested related objects depending on the Depth parameter.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the Twenty API.
- The node uses the Twenty API base URL configured via credentials.
- No additional external dependencies beyond the Twenty API and n8n core modules.
Troubleshooting
- Invalid Id: If the provided webhook Id does not exist, the API will return an error indicating the webhook was not found. Verify the Id is correct.
- Authentication errors: Ensure the API key credential is valid and has permissions to update webhooks.
- Malformed JSON in Operations: The
Operationsproperty expects valid JSON. Invalid JSON syntax will cause parsing errors. Use proper JSON formatting. - Invalid Target URL: Providing an invalid URL may cause the API to reject the update. Confirm the URL is well-formed.
- Permission Denied: If the API user lacks rights to update webhooks, the request will fail. Check API user permissions.
Links and References
- Twenty API Documentation (hypothetical link)
- Webhook Security Best Practices
- n8n Documentation on Webhooks