# Modify grouping information

Rename a profile group.
- **Preconditions**: the group must exist in the team, the caller must be authorized for it, and the new name must not collide with another group. The uniqueness check only runs when the name actually changes.
- **Effect**: renames the group. Profiles stay in it — they reference the group by id, so nothing else has to be updated.
- **Completion**: synchronous and idempotent.

Endpoint: POST /api/envgroup/edit
Version: 2026-09-05

## Request fields (application/json):

  - `groupName` (string, required)
    New name for the environment group

  - `id` (string, required)
    Unique ID of the group to be updated

## Response 200 fields (application/json):

  - `code` (integer, required)
    Return result code 0:Normal Other codes are exceptions.

  - `msg` (string | null, required)
    Error message

  - `data` (boolean, required)
    result

  - `requestId` (string, required)
    Operation Request ID

