Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node updates user settings in a Gitea instance via its API. It allows modifying various personal preferences and profile details of the authenticated user. This is useful for automating user profile management, such as updating display names, privacy settings, language preferences, or UI themes programmatically.

Practical examples include:

  • Automatically setting a user's full name and website after onboarding.
  • Changing privacy-related settings like hiding email or activity feed.
  • Adjusting UI preferences such as theme or diff view style based on user roles or preferences stored elsewhere.

Properties

Name Meaning
Description A textual description or bio for the user profile.
Diff View Style The preferred style for viewing diffs (e.g., inline or side-by-side).
Full Name The full name of the user to be displayed publicly.
Hide Activity Boolean flag to hide or show the user's activity feed for privacy.
Hide Email Boolean flag to hide or show the user's email address for privacy.
Language Preferred language setting for the user interface.
Location The geographical location of the user.
Theme UI theme preference (e.g., light or dark mode).
Website URL of the user's personal or professional website.

Output

The node outputs JSON data representing the updated user settings as returned by the Gitea API. This typically includes all the fields that were updated along with other user metadata confirming the changes.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the Gitea API.
  • Needs the base URL of the Gitea instance configured in credentials.
  • Depends on the Gitea REST API being accessible and the authenticated user having permission to update their own settings.

Troubleshooting

  • Authentication errors: Ensure the API key or token is valid and has sufficient permissions.
  • Invalid property values: Some properties may require specific formats or allowed values (e.g., theme or language codes). Verify inputs conform to expected values.
  • API connectivity issues: Confirm the Gitea server URL is correct and reachable from n8n.
  • Permission denied: The user associated with the API key must have rights to update their settings; otherwise, the API will reject the request.

Links and References

Discussion