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

29 lines
647 B
JSON

{
"put_watch": {
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-put-watch.html",
"methods": [ "PUT", "POST" ],
"url": {
"path": "/_watcher/watch/{id}",
"paths": [ "/_watcher/watch/{id}" ],
"parts": {
"id": {
"type" : "string",
"description" : "Watch ID",
"required" : true
}
},
"params": {
"pretty": {
"type": "boolean",
"description": "Pretty the output",
"default": false
}
}
},
"body": {
"description" : "The watch",
"required" : true
}
}
}