---
title: Set a new password with a reset code
endpoint: POST /api/v3/users/password/reset
description: Consumes the code and replaces the password.
---

`POST /api/v3/users/password/reset`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `email` | email | required | `customer@example.com` |  |
| `code` | string | required |  |  |
| `newPassword` | string | required |  |  |

## Responses

| Status | Meaning |
| --- | --- |
| 204 | The password was changed. |
| 400 | Invalid request. |
| 401 | Bad credentials. |
| 503 | `maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`. |
