---
title: "Rename one tab. Advances the tab's revision and reaches everyone with the document open. Stored shortened to 60 characters."
method: PUT
path: "/documents/{id}/tabs/{tabId}/name"
tags: ["Documents"]
---

# Rename one tab. Advances the tab's revision and reaches everyone with the document open. Stored shortened to 60 characters.

`PUT /documents/{id}/tabs/{tabId}/name`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/documents/{id}/tabs/{tabId}/name`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Owner-Id`

## Path parameters

- `id` string, required
- `tabId` string, required

## Request body

- object
  - `name` string, required: At most 60 characters; a longer name is stored shortened at a word boundary with an ellipsis, and whitespace runs collapse to one space.

## Response `200`

Success.

- object
  - `tab` TabSummary, required
    - `documentId` string, required
    - `folder` string
    - `id` string, required
    - `name` string, required
    - `orderIndex` number, required
    - `outOfScope` true
    - `updatedAt` number, required

## Other responses

- `400`: Error.
- `401`: Error.
- `403`: Error.
- `404`: Error.
- `410`: Error.
- `429`: Rate limited. Back off and retry.

---

[API](https://skmtc.dev/livediagram/apis/livediagram-api.md) · [All operations](https://skmtc.dev/livediagram/apis/livediagram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/livediagram/apis/livediagram-api/revisions/f7eca2dc5e58?raw)
