---
title: "Update the target user's data"
method: PATCH
path: "/v1/admin/users/{userID}"
tags: ["Admin"]
---

# Update the target user's data

`PATCH /v1/admin/users/{userID}`

## 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/admin/users/{userID}`
- Auth: HTTP bearer

## Path parameters

- `userID` number, required

## Request body

- AdminUpdateUserDto
  - `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
  - `roles` number: The new roles to set
  - `bans` number: The new bans to set

## Response `204`

The user was updated successfully

## Other responses

- `400`: Invalid user 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)
