# 批量设置浏览器分组

按分组名称把浏览器移入分组。
- **前置条件**
：
`envIds`
 与
`uniqueIds`
 至少提供一个；
`groupName`
 必填且不超过 50 字符。本接口无法清除浏览器的分组。
- **副作用**
：分组名不存在时会自动创建，这会
**计入团队 1000 个分组的上限**
，达到上限后调用失败。一个浏览器只属于一个分组，因此原分组会被替换。当团队按分组授权时，这里新建的分组也会授权给你。
- **完成信号**
：同步。分组创建按团队串行化，因此用同一个新名称的并发调用不会创建出重复分组。

Endpoint: POST /env/setGroup/batch
Version: 2026-09-05
Security: OpenApiBearer

## Security:

  - `OpenApiBearer` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `envIds` (array)
    浏览器 ID 列表。

  - `uniqueIds` (array)
    浏览器序号列表。
    Example: [1001]

  - `groupName` (string, required)
    目标分组名称，不能为空。
    Example: Marketing

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `code` (integer, required)
    Return result code. `0` means success; other codes indicate exceptions.
    Example: 0

  - `msg` (string | null, required)
    Error message. Usually `null` on success.
    Example: null

  - `requestId` (string)
    Operation request ID. This field may be present when the request passes through the API gateway.
    Example: 1d4f3ea968664593860b94b35d4ebf5e

  - `data` (boolean, required)
    Whether the batch operation succeeded.
    Example: true

