Xsolla-logo
  • 文档
  • 创建帐户

更新用户详细信息Client-side

patch/users/me

通过JWT更新已认证用户的详细信息。

SecurityBearer
Request
Request Body schema: application/json
birthday
string

采用以下格式的用户出生日期:YYYY-MM-DD。只能更改一次。

first_name
string <= 255 characters

用户名字。

gender
string

用户性别。可以是:

  • f,表示女性
  • m,表示男性
  • other
  • prefer not to answer
last_name
string <= 255 characters

用户姓氏。

nickname
string <= 255 characters

用户昵称。

Responses
200

确定

400

错误的请求

401

被禁止

403

被禁止

404

未找到

422

无法处理的实体

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",
  • "devices": [
    ],
  • "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"
}