---
title: "Rename Search Index"
method: POST
path: "/search/{id}/rename"
tags: ["search"]
---

# Rename Search Index

`POST /search/{id}/rename`

## Request

- Base URL: `https://api.upstash.com/v2`
- URL: `https://api.upstash.com/v2/search/{id}/rename`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/upstash/apis/developer-api-upstash/docs/search/:id/rename/post.ts> (a function with typed inputs; its response is checked against the schema)

Renames a search index.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required: New name for the index

## Response `200`

Search index renamed successfully

- string

---

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