---
title: "Change password"
method: POST
path: "/v1/users/{userId}/adminchangepassword.json"
tags: ["users"]
---

# Change password

`POST /v1/users/{userId}/adminchangepassword.json`

Update the users details

## Path parameters

- `userId` integer, required

## Query parameters

- `token` string, required

## Request body

- object
  - `confirmpassword` string
  - `id` integer
  - `oldpassword` string
  - `password` string

## Response `200`

successful operation

- object
  - `id` integer

## Other responses

- `400` — Invalid username supplied
- `404` — User not found

## Changes

- **2017-05-25** `5b98cb916342` — 1 info
  - endpoint added
- **2016-04-26** `5d7a4c3eadce` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/restyaplatform/apis/restyaboard/changes/v1/users/:userId/adminchangepassword.json/post.md)

---

[API](https://skmtc.dev/restyaplatform/apis/restyaboard.md) · [All operations](https://skmtc.dev/restyaplatform/apis/restyaboard/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/restyaplatform/restyaboard/revisions/bfc753befdbe/schema)
