Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Role → Create Multiple

AI-generated

Overview

This node operation allows users to create multiple role objects in a system that manages roles, such as Directus. It is useful for bulk-adding roles with various attributes like name, icon, description, admin access, and app access. For example, an admin can create roles for 'Interns' and 'Customers' in one operation by providing an array of role objects in JSON format.

Use Case Examples

  1. Creating multiple user roles at once to streamline role management in an application.
  2. Bulk importing predefined roles with specific permissions and access settings.

Properties

Name Meaning
Data (JSON) An array of partial role objects to be created, each containing properties like name, icon, description, admin access, and app access.

Output

JSON

  • createdRoles - Array of created role objects with their details as returned by the system after creation.

Dependencies

  • Requires an API key credential or authentication token to interact with the Directus API or similar role management system.

Troubleshooting

  • Ensure the JSON data is correctly formatted as an array of role objects; invalid JSON will cause errors.
  • Check that all required fields for each role object are provided to avoid validation errors.
  • Verify API credentials and permissions to ensure the node can create roles in the system.

Links

Discussion