# update password

## 비밀번호 수정(잊어버린 비밀번호 재설정/ 비밀번호 수정)

<mark style="color:purple;">`PATCH`</mark> `http://rightnow.p-e.kr/user/update/password`

#### Request Body

| Name                                            | Type   | Description        |
| ----------------------------------------------- | ------ | ------------------ |
| email<mark style="color:red;">\*</mark>         | String |                    |
| password                                        | String | type='know' 일때     |
| new\_password<mark style="color:red;">\*</mark> | String |                    |
| type<mark style="color:red;">\*</mark>          | String | 'forget' or 'know' |

{% tabs %}
{% tab title="200: OK 비밀번호 수정 성공" %}

```javascript
{
    'message' === 'ok'
}
```

{% endtab %}

{% tab title="400: Bad Request email이 존재하지 않음" %}

```javascript
{
    'message': 'no exists email'
}
```

{% endtab %}

{% tab title="401: Unauthorized 비밀번호가 일치하지 않음" %}

```javascript
{
    'message': 'incorrect password'
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    'message': 'err'
}
```

{% endtab %}
{% endtabs %}
