User Password Update

입력한 pk의 사용자 password를 변경합니다.

URL

/member/<pk>/password_update/

Method

PATCH

Header

Key Value Require
Authorization Token (login 때 받은 token) True

Data Params

Key Description Type Require
ori_password 기존의 비밀번호 String True
password1 새로 바꾸고자 하는 비밀번호 String True
password2 password1 과 비교하는 비밀번호 String True

Success Response

HTTP Status code
200

content

{
    "detail": "비밀번호가 변경되었습니다."
}

Error response

Unauthorize error

HTTP Status code
401

Content

{
    "detail": "아이디/비밀번호가 유효하지 않습니다."
}

forbiden error

HTTP Status code
403

Content

{
"detail": "다른 사용자에 대한 요청은 수행할 수 없습니다."
}

bad request error

HTTP Status code
400

Content

{
"ori_password": [
"기존 패스워드가 틀렸습니다."
]
}

Not Found error

HTTP Status code
404

Content

{
"detail": "찾을 수 없습니다."
}

Bad Request error

HTTP Status code
400

Content

{
"non_field_errors": [
"새 비밀번호가 다르게 입력되었습니다."
]
}

results matching ""

    No results matching ""