---
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
  - `language` 'en'

## Response `200`

Success

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

## Other responses

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

## Changes

- **2024-01-12** `9d667e94e36f` — 1 breaking, 1 warning, 3 info
  - removed the required property `email` from the response with the `200` status
  - removed the request property `email`
  - added the new optional request property `username`
  - the `password` request property's minLength was decreased from `8` to `5`
  - …1 more
- **2023-11-26** `b173cabb315f` — 3 breaking, 8 warning, 7 info
  - the `password` request property's minLength was increased from `5` to `8`
  - removed the required property `settings` from the response with the `200` status
  - removed the required property `username` from the response with the `200` status
  - the optional response header `X-Api-Commit` removed for the status `200`
  - …14 more

[Change 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/7e58a00a419e/schema)
