Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

User → Update Multiple

AI-generated

Overview

This node operation updates multiple user records in a Directus system based on provided primary keys and data. It is useful for batch updating user attributes such as titles, roles, or other user properties in one request, saving time and effort compared to updating users individually.

Use Case Examples

  1. Updating the title of multiple users to 'CTO' by specifying their unique keys and the new title in the data JSON.
  2. Batch modifying user roles or other profile details for a group of users identified by their primary keys.

Properties

Name Meaning
Data (JSON) JSON object containing an array of user primary keys to update and the data object with user properties to be updated.

Output

JSON

  • updatedUsers - Array of user objects that were updated with the new data.

Dependencies

  • Requires API authentication credentials to access the Directus system.

Troubleshooting

  • Ensure the 'keys' array contains valid user primary keys; invalid keys will cause update failures.
  • The 'data' object must conform to the user object schema defined by Directus; invalid fields or data types will cause errors.
  • API authentication errors may occur if credentials are missing or invalid, resulting in authorization failures.

Links

Discussion