---
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-09-02** `bb102f2b5cf8` — 1 breaking, 2 warning, 3 info
  - removed the enum value `tagged-events` of the request property `settings/script_type/items/`
  - added the new `click-events` enum value to the `settings/script_type/items/` response property for the response status `200`
  - added the new `page-events` enum value to the `settings/script_type/items/` response property for the response status `200`
  - added the new `click-events` enum value to the request property `settings/script_type/items/`
  - …2 more
- **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/format changed from `string`/`` to `array`/``
  - the `settings/script_type` response's property type/format 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
- …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/bb102f2b5cf8/schema)
