---
title: "Update the local users's data"
method: PATCH
path: "/v1/user"
tags: ["User"]
---

# Update the local users's data

`PATCH /v1/user`

## Request

- Base URL: `https://api.momentum-mod.org` (the document declares no server; this is the origin it was published from)
- URL: `https://api.momentum-mod.org/v1/user`
- Auth: HTTP bearer

## Request body

- UpdateUserDto
  - `alias` string: The new alias to set
  - `bio` string: The new bio to set
  - `country` string: The country code to set (requires ISO Alpha-2 code)
  - `resetAvatar` boolean: Whether we need to get a new user avatar from Steam
  - `socials` UpdateSocialsDto
    - `Discord` string, required: Discord Username
    - `Github` string, required: Github Username
    - `Instagram` string, required: Instagram Username
    - `Ko-fi` string, required: Ko-fi Username
    - `LinkedIn` string, required: LinkedIn Username
    - `Mastodon` string, required: Mastodon Username
    - `Patreon` string, required: Patreon Username
    - `Paypal` string, required: Paypal Username
    - `Spotify` string, required: Spotify Username
    - `Twitch` string, required: Twitch Username
    - `Twitter` string, required: Twitter Username
    - `YouTube` string, required: YouTube Username

## Response `204`

The user was successfully updated

## Other responses

- `400`: Invalid update data

---

[API](https://skmtc.dev/momentum-mod/apis/momentum-mod-api.md) - [All operations](https://skmtc.dev/momentum-mod/apis/momentum-mod-api/llms.txt) - [OpenAPI document](https://skmtc.dev/momentum-mod/apis/momentum-mod-api/revisions/0a88cfbbcc65?raw)
