Uploads a profile picture from base64-encoded image data. Saves the file to the user’s home directory, creates a RAG upload record for the file, and updates the user’s profile picture URL. Supported formats are png, jpeg, jpg, gif, and webp. Maximum file size is 5MB.
JWT token passed in x-access-token header
Base64 encoded image data with data URI prefix. Supported formats: png, jpeg, jpg, gif, webp. Maximum decoded size: 5MB.
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
Picture uploaded successfully. The file is saved to disk, a RAG upload record is created, and the user's profile picture URL is updated.