Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Webhook → Update Multiple

AI-generated

Overview

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

  1. Updating the names of multiple webhooks by specifying their IDs and the new name in the data object.
  2. 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

Discussion