---
title: "Change own password"
method: POST
path: "/users/passwd"
tags: ["User"]
---

# Change own password

`POST /users/passwd`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/users/passwd`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/users/passwd/post.ts> (a function with typed inputs; its response is checked against the schema)

Change the current user's password and revoke all of their sessions.

## Query parameters

- `cookie_name` string, nullable

## Request body

- PasswordResetIn
  - `old_password` string, required: Current password, required to authorize the change.
  - `new_password` string, required: New password to set.

## Response `204`

Successful Response

## Other responses

- `401`: Missing or invalid authentication, or wrong current password.
- `404`: The current user no longer exists.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
