---
title: "Updates the User's password with a given ID"
method: POST
path: "/api/v1/users/{id}/password"
tags: ["Users"]
---

# Updates the User's password with a given ID

`POST /api/v1/users/{id}/password`

## Path parameters

- `id` integer, required

## Headers

- `X-Fields` string, mask

## Request body

- UserPasswordLoad
  - `oldPassword` string — Old password for the User resource.
  - `newPassword` string — New password for the User resource.
  - `confirmNewPassword` string — The new password confirmation when changing a password.

## Response `200`

Success

- IdStatusResponse
  - `id` integer[] — A list of integers identifying the affected resource(s).
  - `status` string — The status of the request.

---

[API](https://skmtc.net/usnistgov/apis/dioptra-rest-api.md) · [All operations](https://skmtc.net/usnistgov/apis/dioptra-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usnistgov/dioptra-rest-api/versions/a73101579c5c/schema)
