---
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'
    - `script_type` string[]

## Response `200`

Success

- UserGet — Response body for getting a user.
  - `username` string, required
  - `settings` UserSettings, required — Response body for getting user settings.
    - `language` 'en'
    - `script_type` string[]
  - `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

- **2024-08-12** `e134d8127bc6` — 4 breaking, 4 info
  - removed the enum value `default` of the request property `settings/script_type`
  - removed the enum value `tagged-events` of the request property `settings/script_type`
  - the `settings/script_type` request property type changed from `string` to `array`
  - the `settings/script_type` response's property type changed from `string` to `array` for status `200`
  - …4 more
- **2024-08-05** `094f87dcf6b6` — 1 breaking, 1 warning, 2 info
  - removed the required property `language` from the response with the `200` status
  - removed the request property `language`
  - added the new optional request property `settings`
  - added the required property `settings` to the response with the `200` status
- **2024-06-30** `860d419093ef` — 2 info
  - api tag `User` added
  - api tag `user` removed
- **2024-06-23** `befa5caf6a6c` — 1 info
  - added the non-success response with the status `403`
- **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

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