> For the complete documentation index, see [llms.txt](https://shangzhibo.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shangzhibo.gitbook.io/api/chuang-jian-zi-zhang-hao/xiu-gai-zi-zhang-hao.md).

# 修改子账号

## 接口

创建子账号

```javascript
PUT api/agent/subagent/{id}
```

## 授权

请求 header

```http
Authorization: Bearer <accessToken>
Content-Type: application/json
```

注：请将上方的`<accessToken>`替换为分配给您的秘钥串。关于如何获取 accessToken ，请咨询杨经理（18968187008）。

## 参数

| 参数         | 参数类型           | 是否必填 | 描述                          |
| ---------- | -------------- | ---- | --------------------------- |
| username   | string         | 否    | 用户名，如：手机号/邮箱                |
| password   | string         | 否    | 密码，限制 6-64 位                |
| remark     | string         | 否    | 子账号备注                       |
| activities | array\<string> | 否    | 活动 ID 集合，如：\['1', '2', '3'] |

## 请求样例

```http
PUT /api/agent/subagent/310
```

{id}为子账号 id

## 响应示例

```javascript
{
  "result": true,
}
```
