Skip to content

Modify a user

PATCH
/user/{id|username}

Authorizations

Parameters

Path Parameters

id|username
required
string
[
"EEFFGGHH",
"my_user"
]

The ID or username of the user

Request Body

Modified user fields

object
username
required

The user’s username

string
my_user
name

The user’s display name

string
nullable
My User
email

The user’s email (only displayed if requesting your own account). Requires USER_READ_EMAIL PAT scope.

string format: email
nullable
bio

A description of the user

string
My short biography
payout_data

Various data relating to the user’s payouts status (you can only see your own)

object
balance

The payout balance available for the user to withdraw (note, you cannot modify this in a PATCH request)

integer
10.11223344556678
payout_wallet

The wallet that the user has selected

string
Allowed values: paypal venmo
paypal
payout_wallet_type

The type of the user’s wallet

string
Allowed values: email phone user_handle
email
payout_address

The user’s payout address

string
support@modrinth.com

Responses

204

Expected response to a valid request

401

Incorrect token scopes or no authorization to access the requested item(s)

object
error
required

The name of the error

string
unauthorized
description
required

The contents of the error

string
Authentication Error: Invalid Authentication Credentials

404

The requested item(s) were not found or no authorization to access the requested item(s)