Skip to main content

Persists avatar changes for the specified or current user by moving the generated image into the user's avatar path and updating the profile.

POST 

/avatar/save

Requires a valid UserId (inferred if omitted) and a non-empty ImageUrl. The file is moved within cloud storage to avatar/{UserId}/{hashed-filename}, and the user's profile is updated so the new avatar becomes active.

Errors: Returns a JSON object with an error property if the user is not found, ImageUrl is missing, or storage/profile update fails.

Request

Responses

OK