Change Profile Image

POST https://api.studydev.kr/user/changeprofile/

Parameter Info(headers)

Name Type Description Options
Authorization String 계정인증정보(토큰) Required

Parameter Info(body)

Name Type Description
photo Image 변경할 프로필 이미지

Parameter Data(headers)

Key Value
Authorization Token <Token_Value>

Parameter Data(body)

Key Value
photo <Image_file>

Success Response

Status_Code: 201 created

{
  "user": {
    "username": <username,
    "nickname": <nickname>,
    "user_type": <user_type>,
    "profile_img": <photo_url>,
    "introduction": <introduction>
  }
}

Failed Response

Status_Code: 400 BadRequest

{
  "detail": "It's not valid Extension"
}
이미지의 확장자가 .jpg가 아니거나 확장자가 없는 경

results matching ""

    No results matching ""