All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rest-api-spec.api.watcher.put_watch.json Maven / Gradle / Ivy

There is a newer version: 8.17.0
Show newest version
{
  "watcher.put_watch":{
    "documentation":{
      "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html",
      "description":"Creates a new watch, or updates an existing one."
    },
    "stability":"stable",
    "visibility":"public",
    "headers":{
      "accept": [ "application/json"],
      "content_type": ["application/json"]
    },
    "url":{
      "paths":[
        {
          "path":"/_watcher/watch/{id}",
          "methods":[
            "PUT",
            "POST"
          ],
          "parts":{
            "id":{
              "type":"string",
              "description":"Watch ID"
            }
          }
        }
      ]
    },
    "params":{
      "active":{
        "type":"boolean",
        "description":"Specify whether the watch is in/active by default"
      },
      "version":{
        "type":"number",
        "description":"Explicit version number for concurrency control"
      },
      "if_seq_no":{
        "type":"number",
        "description":"only update the watch if the last operation that has changed the watch has the specified sequence number"
      },
      "if_primary_term":{
        "type":"number",
        "description":"only update the watch if the last operation that has changed the watch has the specified primary term"
      }
    },
    "body":{
      "description":"The watch",
      "required":false
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy