Put Index Mapping

PUT {{baseUrl}}/_mapping

The put mapping API operation lets you add new mappings and fields to an index.

Request Params

KeyDatatypeRequiredDescription
allow_no_indicesboolean
expand_wildcardsstring
ignore_unavailableboolean
include_type_nameboolean
master_timeoutstring
timeoutstring
write_index_onlyboolean

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"acknowledged":true}