---
title: "Edit user"
method: POST
path: "/v1/users/{userId}/changepassword.json"
tags: ["users"]
---

# Edit user

`POST /v1/users/{userId}/changepassword.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

---

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