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

31 lines
798 B
JSON

{
"indices.create": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html",
"methods": ["PUT", "POST"],
"url": {
"path": "/{index}",
"paths": ["/{index}"],
"parts": {
"index": {
"type" : "string",
"required" : true,
"description" : "The name of the index"
}
},
"params": {
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
},
"master_timeout": {
"type" : "time",
"description" : "Specify timeout for connection to master"
}
}
},
"body": {
"description" : "The configuration for the index (`settings` and `mappings`)"
}
}
}