Directus (denkhaus) icon

Directus (denkhaus)

Consume Directus API

Overview

The "Permission: Update Multiple" operation in this custom n8n node allows users to update several permission records at once within a Directus system. This is particularly useful for administrators or automation workflows that need to modify access controls for multiple roles, collections, or actions in bulk. For example, you might use this node to grant or revoke permissions for a set of users across different resources in a single workflow step.

Properties

Name Meaning
Data (JSON) JSON object containing:
- keys: Array of primary keys of the permissions you'd like to update.
- data: Object with any properties of the permission object to update.

Output

  • The output will be a JSON object reflecting the result of the update operation. Typically, this includes the updated permission objects or a summary of the update status for each key provided.
  • No binary data is produced by this operation.

Dependencies

  • Requires access to a Directus instance with appropriate API credentials and permissions to update permissions.
  • n8n must be configured to connect to the relevant Directus environment.

Troubleshooting

  • Common Issues:

    • Invalid or missing keys array: Ensure you provide an array of valid permission IDs.
    • Malformed JSON in "Data (JSON)": Double-check your input format.
    • Insufficient permissions: The API credentials used must have rights to update permissions in Directus.
  • Error Messages:

    • "Invalid primary keys": Check that all IDs in the keys array exist.
    • "Missing required property 'data'": Make sure the data field is present and correctly structured.
    • "Unauthorized": Verify your API credentials and user role permissions.

Links and References

Discussion