OpenSearch/rest-api-spec/api/indices.put_mapping.json

41 lines
1.2 KiB
JSON
Raw Normal View History

{
"indices.put_mapping": {
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/",
"methods": ["PUT", "POST"],
"url": {
"path": "/{index}/{type}/_mapping",
"paths": ["/{index}/{type}/_mapping"],
"parts": {
"index": {
"type" : "list",
"required" : true,
"description" : "A comma-separated list of index names; use `_all` to perform the operation on all indices"
},
"type": {
"type" : "string",
"required" : true,
"description" : "The name of the document type"
}
},
"params": {
"ignore_conflicts": {
"type" : "boolean",
"description" : "Specify whether to ignore conflicts while updating the mapping (default: false)"
},
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
},
"master_timeout": {
"type" : "time",
"description" : "Specify timeout for connection to master"
}
}
},
2013-06-08 09:31:15 -04:00
"body": {
2013-06-08 09:34:13 -04:00
"description" : "The mapping definition",
"required" : true
2013-06-08 09:31:15 -04:00
}
}
}