# 设置账号标签

- API 版本：1.10.0
- 最后更新：2026-09-29
- 服务地址：`https://api.ailingtu.com`
- 网页文档：[设置账号标签](/openapi/set-creator-tags)
- 完整接口约束：[JSON Schema](/openapi/operations/setCreatorAccountTags.json)
- 接口发现：[接口索引](/openapi/operations/index.json)

## POST /v1/creatorAccount/setTags

接口标识：`setCreatorAccountTags`

设置账号标签。

鉴权：请求头 `x-api-key: <YOUR_API_KEY>`；密钥仅保存在服务端。

成功判断：HTTP 2xx 且响应 code=0；异步任务还需查询最终状态。

### 请求参数

| 字段 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| `id` | body | integer | 否 | 单个账号 |
| `ids` | body | integer[] | 否 | 创作者账号 ID 列表 |
| `tagNames` | body | string[] | 是 | 标签名称列表 |
| `append` | body | boolean | 否 | 是否追加标签 |

请求格式：`application/json`

### 请求示例

```json
{
  "ids": [
    12345
  ],
  "tagNames": [
    "team-a"
  ],
  "append": false
}
```

### 成功响应

```json
{
  "code": 0,
  "message": "success",
  "data": null,
  "timestamp": 1790640000000
}
```

### 响应字段

以下列出主要层级；完整结构、联合类型及校验规则以接口 JSON Schema 为准。必填指字段所在对象中的约束。

| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| `code` | integer | 是 | — |
| `message` | string | 是 | — |
| `data` | null | 是 | — |
| `timestamp` | integer | 是 | — |
