# Batch modify profiles group

Move browser profiles into a group by group name.
- **Preconditions**: provide at least one of `envIds` or `uniqueIds`; `groupName` is required and at most 50 characters. There is no way to clear a profile's group through this endpoint.
- **Effect**: the group is created automatically when the name does not exist, which **counts against the 1000-group team limit** and fails once that is reached. A profile belongs to exactly one group, so the previous group is replaced. When your team authorizes access per group, a group created here is also granted to you.
- **Completion**: synchronous. Group creation is serialized per team, so concurrent calls with a new name do not create duplicates.

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

## Request fields (application/json):

  - `envIds` (array)

  - `groupName` (string, required)
    Group name, string type, required

  - `uniqueIds` (array)
    Serial IDs, array type, must choose one between this and environment IDs

## Response 200:

  - `200` (unknown)
    Success. `data` is a single boolean value.

## Response 200 fields (application/json):

  - `code` (integer)

  - `msg` (string | null)

  - `data` (boolean)

  - `requestId` (string, required)

