---
title: "Change a user's password, or switch a user to SSO"
method: POST
path: "/v1/user/{userId}/password"
tags: ["user"]
---

# Change a user's password, or switch a user to SSO

`POST /v1/user/{userId}/password`

## Path parameters

- `userId` string, required

## Request body

- ChangePasswordRequest
  - `newPassword` string, required — password to change to
  - `oldPassword` string — password to change from

## Response `204`

password changed

## Other responses

- `400` — invalid data
- `401` — not authorized
- `403` — permission denied
- `404` — not found

---

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