Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Webhook → Update Multiple
AI-generatedOverview
This node operation updates multiple webhook entries in a Directus system based on provided primary keys and new data. It is useful for batch updating webhook configurations, such as changing names or other properties of several webhooks at once, which can save time and reduce manual effort compared to updating each webhook individually.
Use Case Examples
- Updating the names of multiple webhooks by specifying their IDs and the new name in the data object.
- Modifying other webhook properties like URL or status for a set of webhooks identified by their primary keys.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | Contains the keys (array of primary keys of the webhooks to update) and the data object with properties to update on those webhooks. |
Output
JSON
updatedWebhooks- Array of webhook objects that were updated with their new properties.
Dependencies
- Requires an API key credential for authentication with the Directus API.
Troubleshooting
- Ensure the 'keys' array contains valid primary keys of existing webhooks; otherwise, the update will fail or affect no records.
- The 'data' object must contain valid webhook properties as per the Directus webhook object specification; invalid properties will cause errors.
- Authentication errors may occur if the API key or credentials are missing or incorrect.
Links
- Directus Webhook Object Documentation - Reference for the webhook object properties that can be updated.