Infomaniak CoreResources icon

Infomaniak CoreResources

Interact with Infomaniak API

Overview

The node interacts with the Infomaniak API to manage user profiles and related resources. Specifically, the "Upload Avatar" operation under the "Profile" resource allows users to add or update their profile avatar image by uploading a base64-encoded image. This is useful in scenarios where you want to programmatically set or change a user's avatar in Infomaniak's system, such as during onboarding workflows or profile updates.

Example use cases:

  • Automatically setting a default avatar for new users.
  • Updating avatars based on external image sources.
  • Integrating avatar management into broader user profile automation.

Properties

Name Meaning
Avatar Base64 encoded string representing the avatar image to upload.
Encoding The encoding type of the avatar data. Supported value: base64.

Output

The output JSON contains the response from the Infomaniak API after attempting to upload the avatar. On success, it returns the updated profile data including the new avatar information. If the upload fails, an error is thrown.

No binary data output is produced by this operation; all data is handled and returned as JSON.

Dependencies

  • Requires an API key credential for authenticating with the Infomaniak API.
  • The node makes HTTP requests to the Infomaniak API endpoints.
  • Proper configuration of the API authentication token in n8n credentials is necessary.

Troubleshooting

  • Failed to upload avatar: This error occurs if the API request to upload the avatar fails. Check that the base64 avatar string is correctly formatted and not empty.
  • Invalid encoding: Only base64 encoding is supported. Ensure the encoding property is set accordingly.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
  • Large image size: Very large images might cause request failures or timeouts. Resize or compress images before encoding.
  • Malformed base64 string: Ensure the avatar string is properly base64 encoded without extra characters or line breaks.

Links and References

Discussion