v1

latestOpenAPI 3.0.1Apache 2.02026-07-17427669.7 KB
Index

Set index mappings

put/api/{index}/_mapping

Path parameters

indexstring required

Index

Request body

propertiesobject

Example request

{
  "properties": {
    "key": {
      "search_analyzer": "search_analyzer",
      "analyzer": "analyzer",
      "aggregatable": true,
      "format": "format",
      "index": true,
      "highlightable": true,
      "sortable": true,
      "store": true,
      "fields": {
        "key": null
      },
      "time_zone": "time_zone",
      "type": "type"
    }
  }
}

Response

OK

messagestring

Example response

{
  "message": "message"
}