---
title: "Verify the password reset token and set a new password"
method: PUT
path: "/auth/change-password"
tags: ["auth"]
---

# Verify the password reset token and set a new password

`PUT /auth/change-password`

## Request

- Base URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1`
- URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1/auth/change-password`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/docs/auth/change-password/put.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `old_password` string, required
  - `new_password` string, required

## Response `200`

Password updated successfully

- object
  - `status` string
  - `message` string
  - `status_code` integer

## Other responses

- `400`: Invalid input
- `401`: Unauthorized
- `422`: Unprocessed Entity

---

[API](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger.md) - [All operations](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/llms.txt) - [OpenAPI document](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/revisions/2d1d3ed96bb9?raw)
