---
title: "Update login info"
method: POST
path: "/login-info/update"
tags: ["Login Info"]
---

# Update login info

`POST /login-info/update`

Updates the login info (username, password, security question, security answer) of the user.
None of the login info fields are explicitly required, but if at least one field isn't given the API will return an error.

## Headers

- `Authorization` string, required
- `Pelm-Client-Id` string, required
- `Pelm-Secret` string, required

## Request body

- object
  - `new_username` string — New username
  - `new_password` string — New password
  - `new_challenge_question` string — New challenge question
  - `new_challenge_answer` string — New challenge answer

## Response `200`

Successfully updated login info

- object
  - `new_info` object
    - `username` string — Updated username
    - `challenge_question` string — Updated challenge question
    - `challenge_answer` string — Updated challenge answer
  - `old_info` object
    - `username` string — Previous username
    - `challenge_question` string — Previous challenge question
    - `challenge_answer` string — Previous challenge answer

## Other responses

- `400` — Client error
- `401` — Unauthorized
- `403` — Permission denied
- `500` — Server error

---

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