---
title: "更新分组"
method: PATCH
path: "/api/v2/channels/account-groups/{groupId}"
tags: ["渠道管理/账号分组"]
---

# 更新分组

`PATCH /api/v2/channels/account-groups/{groupId}`

接口说明：根据 groupId 更新分组信息。

## Path parameters

- `groupId` string, required

## Request body

- object
  - `name` string — 分组名称
  - `rank` number — 排序值
  - `ip` string — IP
  - `location` string — 位置
  - `countryCode` string — 国家代码
  - `proxyIp` string — 代理 IP
  - `browserConfig` object — 浏览器指纹配置

## Response `200`

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

- object
  - `data` ChannelAccountGroupVo
    - `id` string, required — 分组 ID
    - `name` string, required — 分组名称
    - `rank` number — 排序值
    - `ip` string — IP
    - `location` string — 位置
    - `countryCode` string — 国家代码
    - `proxyIp` string — 代理 IP
    - `isDefault` boolean — 是否默认分组
    - `hasBrowserConfig` boolean, required — 是否包含浏览器指纹配置
    - `createdAt` string, date-time — 创建时间
    - `updatedAt` string, date-time — 更新时间
  - `code` integer, required — 业务状态码。0 表示成功，非 0 表示业务错误。
  - `message` string, required — 响应消息。
  - `requestId` string — 请求 ID。
  - `timestamp` integer — 错误响应时间戳，Unix 毫秒。

---

[API](https://skmtc.net/aitoearn/apis/aitoearn-api.md) · [All operations](https://skmtc.net/aitoearn/apis/aitoearn-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aitoearn/aitoearn-api/revisions/19d860d9260d/schema)
