Change Password User
Mengganti/mengubah password User.
URI
PATCH/api/v1/users/{id}/change-password
Security
Type: Bearer Token
Path Parameter
| Name | Type | Field | Description |
|---|---|---|---|
id | string | required | Berisi ID spesifik dari data User. |
Body Parameter
| Name | Type | Field | Description |
|---|---|---|---|
password_new | string | required | Berisi password baru User. |
password_new_confirmation | string | required | Berisi konfirmasi password baru User. |
Examples
- URI
- Payload
- Response
`{base_url}/api/v1/users/1/change-password`
{
"password_new": "Passwordnew123",
"password_new_confirmation": "Passwordnew123"
}
{
"message": "Data berhasil tersimpan",
"data": null
}