> For the complete documentation index, see [llms.txt](https://marcosteam.gitbook.io/sspanel-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://marcosteam.gitbook.io/sspanel-api/yong-hu-she-zhi/ge-ren-xin-xi-she-zhi.md).

# 个人信息设置

以下 API 主要可以修改个人联系方式和邀请链接等。

## wechat

<mark style="color:green;">`POST`</mark> `https://your_sspanel_domain/user/wechat`

&#x20;修改用户个人联系信息（我也不知道为什么叫 wechat...）需要 include cookie。

#### Request Body

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| imtype | string | 用户联系方式      |
| wechat | number | 用户联系方式账号    |

{% tabs %}
{% tab title="200 " %}

```
{"ret":1,"msg":"\u4fee\u6539\u6210\u529f"}
```

{% endtab %}
{% endtabs %}

## getNewInviteCode

<mark style="color:blue;">`GET`</mark> `https://your_sspanel_domain/getnewinvitecode`

重置用户的邀请链接，需要 include cookie。

{% tabs %}
{% tab title="200  于code中返回修改后的邀请链接。" %}

```
{"ret":1,"code":"..."}
```

{% endtab %}
{% endtabs %}

## userEmail

<mark style="color:green;">`POST`</mark> `/user/mail/`

修改每日流量报告通知方式，include cookie。

#### Path Parameters

| Name | Type   | Description                                      |
| ---- | ------ | ------------------------------------------------ |
| mail | number | <p>0：不接收<br>1：通过邮件接收<br>2：通过 Telegram Bot 接收</p> |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
