프로필 수정 - DevCamp2Flame/FlameTalk_Server GitHub Wiki

Profile update API

Request

Method

PUT

URL

/api/membership/profile/{profileId}

Header

Method Parameter Description
Content-Type application/json
ACCESS-TOKEN {token} access token값

Path Variable

Parameter Type Description Required
profileId Long 수정할 프로필 id Y

Body

Field Type Description Required
userId String 유저 id Y
imageUrl String 프로필 사진 url N
bgImageUrl String 프로필 배경 사진 url N
sticker JSON Array 프로필에 사용된 스티커 리스트. 없는 경우 [] 빈 배열. 프로필 생성 sticker 참고 Y
description String 프로필 상태 메세지 N
isDefault boolean 기본 프로필 여부 Y

Response

Header

Method Parameter Description
statusCode {statusCode} http 상태 코드 값

Body

Field Type Description
code Integer 응답 코드
message String 응답 메세지

SUCCESS example

{
    "status": 200,
    "messsage": "프로필 수정 성공"
}

Error Code

Code Error Messsage
400 Bad Request
401 Unauthorized
404 File Not Found
500 Server Error

FAIL example

{
    "status": 400,
    "message": "잘못된 요청입니다.",
    "error": "BAD_REQUEST",
    "code": "BAD_REQUEST",
    "timestamp": "2022-01-18T19:30:16.3072905",
}