---
title: "Rebuild Embedding"
method: POST
path: "/api/v2/indexing/rebuild-embedding"
tags: ["IndexV2"]
---

# Rebuild Embedding

`POST /api/v2/indexing/rebuild-embedding`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/v2/indexing/rebuild-embedding`
- Auth: none declared. Required headers: `X-HawkSearch-ApiKey`
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/v2/indexing/rebuild-embedding/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates Embeddings for preconfigured fields. This method is NOT called as part of Rebuild-All.  It is required that this method be called separately.

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- IndexParams: Index params
  - `IndexName` string: Index used for operation
  - `KeepIndexTemplate` boolean: (Optional)Do not delete Index Template

## Response `200`

OK

- object

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
