---
title: "Change user password"
method: POST
path: "/api/accounts/change-password/"
tags: ["accounts"]
---

# Change user password

`POST /api/accounts/change-password/`

## Request

- Base URL: `https://docs.blindinsight.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.blindinsight.io/api/accounts/change-password/`
- Auth: one of:
  - API key in cookie `sessionid`
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/docs/api/accounts/change-password/post.ts> (a function with typed inputs; its response is checked against the schema)

Change the password of the currently authenticated user. The `old_password`
field must match the currently set password. The `password` and
`password_confirm` fields must match.

The response will be a detail message indicating if the password change was
successful.

**On the command line:**

```bash
blind accounts change-password --data password-change.json
```

## Request body

- ChangePassword
  - `old_password` string, required
  - `password` string, required
  - `password_confirm` string, required

## Response `200`

- PasswordChanged
  - `detail` string

## Other responses

- `400`

---

[API](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api.md) - [All operations](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/revisions/0ac902401cea?raw)
