---
title: "Change a User Password"
method: POST
path: "/accountmanager.changepassword/{userId}"
tags: ["User Admin"]
---

# Change a User Password

`POST /accountmanager.changepassword/{userId}`

## Request

- Base URL: `https://companynode.pricefx.com/pricefx/companypartition`
- URL: `https://companynode.pricefx.com/pricefx/companypartition/accountmanager.changepassword/{userId}`
- Auth: one of:
  - HTTP basic
  - API key in header `X-PriceFx-jwt`
- TypeScript: <https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/docs/accountmanager.changepassword/:userId/post.ts> (a function with typed inputs; its response is checked against the schema)

Changes a specified user's password.<p> The authenticated user needs the `ADMIN` (including `USERADMIN`) permissions to perform this action. To change your own password, use the **/accountmanager.changepassword** endpoint instead.

## Request body

- object
  - `data` object, required
    - `newPassword` string, required

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` unknown
    - `status` number

---

[API](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api.md) - [All operations](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/revisions/23d941b00ac0?raw)
