---
title: "Update User Info"
method: PATCH
path: "/user"
tags: ["User"]
---

# Update User Info

`PATCH /user`

Update a user account's details.

## Cookies

- `_me_sess` string, required

## Request body

- UserPatch — Request body for updating a user.
  - `username` string
  - `password` string, password
  - `settings` UserSettings — Response body for getting user settings.
    - `language` 'en'

## Response `200`

Success

- UserGet — Response body for getting a user.
  - `username` string, required
  - `settings` UserSettings, required — Response body for getting user settings.
    - `language` 'en'
  - `dateCreated` integer, required
  - `dateUpdated` integer, required

## Other responses

- `400` — 400 Bad Request.
- `401` — 401 Unauthorised.
- `403` — 403 Forbidden.
- `404` — 404 Not Found.
- `409` — 409 Conflict Found.
- `500` — 500 Unexpected Internal Server Error.

## Changes

- **2026-07-17** `77bbbf562f15` — 8 warning
  - removed the request property `settings/blockAbusiveIPs`
  - removed the request property `settings/blockTorExitNodes`
  - removed the request property `settings/blockedIPs`
  - removed the request property `settings/script_type`
  - …4 more
- **2025-08-11** `8493dd09ede1` — 6 info
  - added the new optional request property `settings/blockAbusiveIPs`
  - added the new optional request property `settings/blockTorExitNodes`
  - added the new optional request property `settings/blockedIPs`
  - added the optional property `settings/blockAbusiveIPs` to the response with the `200` status
  - …2 more
- **2024-09-04** `251a51c1c932` — 7 warning
  - the optional response header `X-API-Commit` removed for the status `200`
  - the optional response header `X-API-Commit` removed for the status `400`
  - the optional response header `X-API-Commit` removed for the status `401`
  - the optional response header `X-API-Commit` removed for the status `403`
  - …3 more
- …earlier changes not shown

[Full history](https://skmtc.dev/medama-io/apis/medama-analytics-api/changes/user/patch.md)

---

[API](https://skmtc.dev/medama-io/apis/medama-analytics-api.md) · [All operations](https://skmtc.dev/medama-io/apis/medama-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/medama-io/medama-analytics-api/revisions/77bbbf562f15/schema)
