{ "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 } } }