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
Role → Update Multiple
AI-generatedOverview
This node updates multiple role entries in a Directus system based on provided primary keys and data. It is useful for batch updating role properties such as icons or permissions in one operation, saving time compared to updating each role individually. For example, updating the icon for several roles at once.
Use Case Examples
- Updating the 'icon' property for multiple roles identified by their primary keys.
- Batch modifying role attributes like permissions or descriptions for a set of roles.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | JSON object containing 'keys' (an array of primary keys of the roles to update) and 'data' (the properties of the role object to update). |
Output
JSON
updatedRoles- Array of updated role objects reflecting the changes made.
Dependencies
- Requires connection to a Directus API instance with appropriate authentication credentials.
Troubleshooting
- Ensure the 'keys' array contains valid primary keys of existing roles; invalid keys will cause update failures.
- The 'data' object must conform to the role object schema; invalid properties or types will cause errors.
- Authentication errors may occur if API credentials are missing or invalid; verify credentials and permissions.
Links
- Directus Role Object Documentation - Reference for the properties available on the role object that can be updated.