Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows updating a user's avatar image by sending a base64-encoded image to the target service. It is useful in scenarios where you want to programmatically change or set the profile picture of a user, for example, automating user profile management or syncing avatars from another system.

Properties

Name Meaning
Image The avatar image encoded as a base64 string. This image data will be sent in the request body to update the user's avatar.

Output

The output JSON typically contains the response from the API after attempting to update the user's avatar. This may include confirmation of success, updated user details, or error information. If the node supports binary data output, it would relate to the image data, but here the input image is base64 encoded and sent; no binary output is indicated.

Dependencies

  • Requires an API key or authentication token configured in the node credentials to authorize requests.
  • Depends on the external service's API endpoint that accepts avatar updates via a base64-encoded image payload.
  • The node uses HTTP requests with JSON content type headers.

Troubleshooting

  • Common issues:
    • Sending an improperly base64-encoded image will cause the API to reject the request.
    • Missing or invalid authentication credentials will result in authorization errors.
    • Network connectivity problems can prevent the request from reaching the API.
  • Error messages:
    • "Invalid image format" or similar indicates the image data is not correctly encoded.
    • "Unauthorized" or "Authentication failed" means the API key or token is missing or incorrect.
    • "Request timeout" suggests network issues or slow API response.
  • Resolutions:
    • Ensure the image is properly base64 encoded before passing it to the node.
    • Verify that valid API credentials are configured.
    • Check network connectivity and API availability.

Links and References

  • Refer to the target service’s API documentation for user avatar update endpoints and required image formats.
  • General base64 encoding guides: https://en.wikipedia.org/wiki/Base64

Discussion