UploadUserProfilePicture
Register and update user profile images
Description
Register and update user profile images
Method
POST
Request URL Format
/api/v0/userinfo/profilepic
Content-Type : multipart/form-data
file : Attached file
Request URL Sample
POST https://api.xxx.com/api/v0/userinfo/profilepic
Response Sample
{
"error": null
}
Error Response Sample
When a file in an unsupported format is specified
{
"error": "file format is not supported: application/pdf"
}
// The following MIME types are allowed
"image/gif",
"image/png",
"image/jpeg",
"image/bmp",
"image/webp",
"image/apng",
"image/avif",
"image/svg+xml",
"image/tiff"
When the file size exceeds the specified value (5MB)
{
"error": "reduce the file size to 5242880 bytes or less"
}