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
Permission → Update Multiple
AI-generatedOverview
This node updates multiple permission records in a Directus system based on provided primary keys and data fields. It is useful for batch updating permissions, such as modifying access rights or roles for multiple entries at once, improving efficiency in managing permissions.
Use Case Examples
- Updating the titles and bodies of multiple permission entries identified by their IDs.
- Changing specific fields of several permissions simultaneously using a JSON object specifying keys and data.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | JSON object containing the keys (array of primary keys of the permissions to update) and data (fields and values to update in those permissions). |
Output
JSON
updatedCount- Number of permission records successfully updated.updatedPermissions- Array of updated permission objects reflecting the changes made.
Dependencies
- Requires connection to a Directus API with appropriate authentication credentials.
Troubleshooting
- Ensure the 'keys' array contains valid primary keys of existing permissions; invalid keys will cause update failures.
- The 'data' JSON must conform to the permission object schema as per Directus API documentation; invalid fields or data types will cause errors.
- Authentication errors may occur if API credentials are missing or invalid; verify API key or token.
Links
- Directus Permission Object Documentation - Reference for the structure and fields of permission objects to be updated.