# Modify information of tags

Rename a profile tag.
- **Preconditions**: the tag must exist in the team, and the new name must not collide with another tag.
- **Effect**: renames the tag. Existing tag assignments are unaffected and profiles show the new name immediately.
- **Completion**: synchronous and idempotent.

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

## Request fields (application/json):

  - `id` (string, required)
    tag id

  - `tagName` (string, required)
    tag name

## 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)

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

  - `error` (object)

