Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation updates the avatar image of a specified organization in Gitea, a self-hosted Git service. It is useful when you want to programmatically change or set the profile picture of an organization within your Gitea instance. For example, you might automate branding updates across multiple organizations or synchronize avatars from another system.

Properties

Name Meaning
Org The name of the organization whose avatar you want to update.
Image The new avatar image encoded as a base64 string. This image will replace the current one.

Output

The node outputs JSON data representing the response from the Gitea API after updating the organization's avatar. This typically includes confirmation details about the updated organization, such as its name and possibly the URL or metadata of the new avatar image.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The Gitea instance URL must be configured in the node credentials.
  • The node uses the Gitea REST API endpoint /api/v1 to perform the avatar update.

Troubleshooting

  • Invalid Organization Name: If the organization name does not exist or is misspelled, the API will return an error. Verify the exact organization name in your Gitea instance.
  • Invalid Image Format: The image must be base64 encoded. Providing raw image data or an unsupported format will cause the request to fail.
  • Authentication Errors: Ensure that the API key credential is valid and has sufficient permissions to update organization details.
  • API Endpoint Issues: Confirm that the Gitea URL is correct and accessible from n8n.

Links and References

Discussion