---
title: "Reset password"
method: POST
path: "/auth/accounts/{user_id}/reset"
tags: ["Auth"]
---

# Reset password

`POST /auth/accounts/{user_id}/reset`

Reset user password (self or admin)

## Path parameters

- `user_id` integer, required

## Request body

- object
  - `code` string
  - `new_password` string

## Response `200`

OK

- UtilsResponse
  - `code` integer
  - `data` unknown
  - `message` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/lxpio/apis/omnigram-api.md) · [All operations](https://skmtc.net/lxpio/apis/omnigram-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lxpio/omnigram-api/revisions/58911ffb3093/schema)
