---
title: "Create new empty ONS Elasticsearch index"
method: POST
path: "/search"
tags: ["private"]
---

# Create new empty ONS Elasticsearch index

`POST /search`

Request a new search index and receive the name of the new index created in response. Endpoint requires service or user authentication.

## Response `200`

OK

## Other responses

- `400` — The request was invalid.
- `401` — Failed to process the request due to being unauthorised.
- `500` — Internal server error

---

[API](https://skmtc.net/office-of-national-statistics/apis/search-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/search-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/search-api/revisions/33e6751db807/schema)
