Skip to content

[PUT] 유저 닉네임 변경

herimhong edited this page Jan 7, 2021 · 6 revisions

닉네임 변경

METHOD PATH
PUT /user/nickname

📌HEADERS - jwt

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzEsImlhdCI6MTYxMDAxNzMwMiwiZXhwIjoxNjEwODgxMzAyLCJpc3MiOiJzb3VuZFBpY2tlciJ9.TIpgrP2-_a-ZMroP7s-7-v3hngiiZ3RnO7z-tTLNhC0

📌REQUEST BODY

{
    "nickname": "사피엔스"
}

📌RESPONSE BODY

성공

{
    "status": 200,
    "success": true,
    "message": "닉네임 변경 성공",
    "data": {
        "id": 31,
        "nickname": "사피엔스"
    }
}

실패-already exists

{
    "status": 400,
    "success": false,
    "message": "이미 존재하는 닉네임 입니다."
}