Directus (denkhaus) icon

Directus (denkhaus)

Consume Directus API

Overview

This node updates the profile information of the currently authenticated user in a Directus v1 system. It is useful for scenarios where users need to programmatically update their own account details, such as changing their job title, contact information, or other personal data fields. For example, an automated workflow could allow users to update their profile after completing a form or as part of a self-service portal.

Properties

Name Meaning
Data (JSON) JSON object containing the fields and values to update for the current user (e.g., {"title": "CTO"}). This property is required and should include only the fields you wish to modify.

Output

The output will be a JSON object reflecting the updated user profile. The structure typically includes the user's fields after the update, such as:

{
  "id": 123,
  "email": "user@example.com",
  "title": "CTO",
  // ...other user fields
}

No binary data is produced by this operation.

Dependencies

  • Requires access to a Directus v1 API endpoint.
  • Authentication credentials (such as an API key or session token) must be configured in n8n for the node to operate on behalf of the current user.

Troubleshooting

  • Invalid JSON in "Data (JSON)": If the input is not valid JSON, the node may throw a parsing error. Ensure your input is properly formatted.
  • Missing Required Fields: If required user fields are omitted or invalid, the API may reject the update. Check the Directus documentation for required fields.
  • Authentication Errors: If authentication is not set up correctly, you may receive errors indicating unauthorized access. Verify your credentials and connection settings.

Links and References

Discussion