Upload Avatar
POST /api/v1/profile/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
Authorizations
Seção intitulada “Authorizations ”Request Body required
Seção intitulada “Request Body required ” Body_upload_avatar_api_v1_profile_avatar_post
object
file
required
File
string format: binary
Responses
Seção intitulada “ Responses ”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>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string