---
title: "Set index mappings"
method: PUT
path: "/api/{index}/_mapping"
tags: ["Index"]
---

# Set index mappings

`PUT /api/{index}/_mapping`

## Path parameters

- `index` string, required

## Request body

- MetaMappings
  - `properties` object

## Response `200`

OK

- MetaHTTPResponse
  - `message` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2022-08-06** `64901d9f1a5b` — 2 info
  - added the new optional request property `properties/additionalProperties/fields`
  - added the new optional request property `properties/additionalProperties/time_zone`
- **2022-06-24** `b796c7453ce7` — 2 warning
  - removed the request property `properties/additionalProperties/fields`
  - removed the request property `properties/additionalProperties/time_zone`

[Change history](https://skmtc.dev/zincsearch/apis/zinc-search-engine-api/changes/api/:index/_mapping/put.md)

---

[API](https://skmtc.dev/zincsearch/apis/zinc-search-engine-api.md) · [All operations](https://skmtc.dev/zincsearch/apis/zinc-search-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zincsearch/zinc-search-engine-api/revisions/c7ce1991bb9a/schema)
