OpenSearch/rest-api-spec/api/put_script.json

26 lines
637 B
JSON
Raw Normal View History

{
"put_script": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html",
"methods": ["PUT", "POST"],
"url": {
"path": "/_scripts/{lang}/{id}",
"paths": [ "/_scripts/{lang}/{id}" ],
"parts": {
"id": {
"type" : "string",
"description" : "Script ID",
"required" : true
},
"lang" : {
"type" : "string",
"description" : "Script language",
"required" : true
}
}
},
"body": {
"description" : "The document",
"required" : true
}
}
}