---
title: "Change user password"
method: POST
path: "/users/{user-id}/password"
tags: ["Users"]
---

# Change user password

`POST /users/{user-id}/password`

Changes password for the specified user. Use "self" for current user.

## Path parameters

- `user-id` string, required

## Request body

- object
  - `oldPassword` string — Current password (required when changing own password)
  - `newPassword` string, required — New password

## Response `200`

Password changed

## Other responses

- `400` — Invalid request
- `401` — Access denied

## Changes

> 15 revisions in range; 11 could not be searched.

- **2023-02-23** `9c09a2aad349` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/netxms/apis/netxms-rest-api/changes/users/:user-id/password/post.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-rest-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netxms/netxms-rest-api/revisions/04789afedcb3/schema)
