---
title: "Update a tag name."
method: PUT
path: "/api/v1/projects/{projectId}/labels/{labelId}"
tags: ["Tags"]
---

# Update a tag name.

`PUT /api/v1/projects/{projectId}/labels/{labelId}`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/labels/{labelId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/labels/:labelId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the name of an existing tag. User and document assignments are preserved.

Tags are called *labels* in the API, so paths and fields use `label` (for example `labelId` and `labels`).

## Path parameters

- `projectId` integer, required
- `labelId` integer, required

## Request body

- object
  - `name` string: New tag name (must not start with a digit)

## Response `200`

Rename a tag within a project

- object
  - `status` 'error' | 'success': The status of the response
  - `data` object
    - `id` integer: Tag ID
    - `name` string: Tag name

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `403`: Source labeling feature is not enabled for this account.
- `404`: Agent not found
- `429`: Too many requests. You have exceeded your API rate limit.
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/labels/:labelId/put.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
