Pular para o conteúdo

Upload Avatar

POST
/api/v1/profile/avatar

Upload user avatar.

Requirements:

  • Max file size: 2MB
  • Allowed formats: JPG, PNG, WEBP
  • Image will be resized to 200x200px
Body_upload_avatar_api_v1_profile_avatar_post
object
file
required
File
string format: binary

Successful Response

AvatarUploadResponse

Schema for avatar upload response.

object
avatar_url
required
Avatar Url
string
message
required
Message
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string