Infomaniak CoreResources icon

Infomaniak CoreResources

Interact with Infomaniak API - Developed by Ascenzia (ascenzia.ch)

Profile → Upload Avatar

AI-generated

Summary

Upload a base64 encoded image as the user's profile avatar on Infomaniak.

Inputs

  • Avatar Data (required) — A collection containing the base64 encoded avatar image string (avatar) and its encoding type (encoding, default is 'base64').

Output shape

a single-item JSON array containing the upload response data from Infomaniak API.

The operation sends a POST request to the '/profile/avatar' endpoint with the provided avatar data. The response includes details about the uploaded avatar. If the encoding field is omitted, it defaults to 'base64'.

Examples

Example 1: Uploading a new profile avatar

Provide the image data as a base64 string under 'avatar' and specify the encoding if not base64.

Links

Discussion