Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node integrates with a user management system (specifically Gitea in this case) to add one or more email addresses to a specified user. It is useful when you want to programmatically update user profiles by associating additional email addresses, for example, to enable notifications or verify multiple contact points.

Common scenarios include:

  • Automatically adding secondary emails to users imported from another system.
  • Managing user contact information in bulk workflows.
  • Synchronizing user data between different platforms.

Properties

Name Meaning
Emails A JSON array of email addresses to add. Example: ["user@example.com", "admin@example.org"]

The property expects a JSON-formatted string representing an array of email addresses that will be added to the user.

Output

The node outputs JSON data reflecting the result of the API call to add emails. This typically includes confirmation of the added emails or the updated user object. The exact structure depends on the external API response but generally contains details about the user's email list after the operation.

No binary data output is involved.

Dependencies

  • Requires an API key credential to authenticate with the Gitea API.
  • Needs the base URL of the Gitea instance configured in credentials.
  • Depends on the Gitea REST API endpoint /api/v1 for user email management.

Troubleshooting

  • Invalid JSON in Emails Property: If the JSON array of emails is malformed, the node will fail to parse it. Ensure the input is valid JSON.
  • Authentication Errors: Missing or incorrect API credentials will cause authorization failures. Verify the API key and base URL.
  • API Endpoint Errors: If the Gitea server is unreachable or the endpoint changes, the node will throw connection errors. Check network connectivity and API version compatibility.
  • Empty Email List: Providing an empty or null email list may result in no action or an error depending on the API behavior.

Links and References

Discussion