Xsolla-logo

Update user details

patch/users/me

Updates the details of the authenticated user by JWT.

Request
Security:
Request Body schema: application/json
birthday
string

User birth date in the following format: YYYY-MM-DD. Can be changed only once.

first_name
string [ 1 .. 255 ] characters

User first name.

gender
string

User gender. Can be:

  • f for female
  • m for male
  • other
  • prefer not to answer
Enum: "f" "m" "other" "prefer not to answer"
last_name
string [ 1 .. 255 ] characters

User last name.

nickname
string [ 1 .. 255 ] characters

User nickname.

Responses
200

OK

400

Bad Request

403

Forbidden

404

Not Found

Request samples
application/json
{
  • "birthday": "1990-12-12",
  • "first_name": "John",
  • "gender": "f",
  • "nickname": "Johny"
}
Response samples
application/json
{
  • "birthday": "1995-01-05",
  • "country": "USA",
  • "email": "johny-doe@example.com",
  • "external_id": "123",
  • "first_name": "John",
  • "gender": "m",
  • "groups": [
    ],
  • "id": "11",
  • "is_anonymous": false,
  • "last_login": "2018-05-17T11:22:52+0000",
  • "last_name": "Doe",
  • "nickname": "Johny",
  • "phone": "+79136759832",
  • "phone_auth": "79136759832",
  • "registered": "2017-01-01T00:00:00+0000",
  • "tag": "234125",
  • "username": "Johny200"
}