---
title: "Rename Token Group"
method: PUT
path: "/api/token/group-rename"
tags: ["Token"]
---

# Rename Token Group

`PUT /api/token/group-rename`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/token/group-rename`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Request body

- TokenGroupRenameRequest: TokenGroupRenameRequest schema
  - `from` string, required: Group name the tokens reference today
  - `to` string, required: Group name to reference instead

## Response `200`

OK

- ResponseDtoTokenGroupRenameResponse: Response_dto.TokenGroupRenameResponse schema
  - `data` TokenGroupRenameResponse, required
    - `changed` integer, required
  - `message` string, required
  - `success` boolean, required

## Changes

- **2026-11-17** `9d97d4384e03`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unorouter/apis/new-api/changes/api/token/group-rename/put.md)

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
