Deactivates a currently active watch

POST /_watcher/watch/{watch_id}/_deactivate

Path parameters

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • status object Required

      Additional properties are allowed.

      Hide status attributes Show status attributes object
      • actions object Required
        Hide actions attribute Show actions attribute object
        • * object Additional properties

          Additional properties are allowed.

          Hide * attributes Show * attributes object
      • state object Required

        Additional properties are allowed.

        Hide state attributes Show state attributes object
      • version number Required
POST /_watcher/watch/{watch_id}/_deactivate
curl \
 -X POST http://api.example.com/_watcher/watch/{watch_id}/_deactivate
Response examples (200)
{
  "status": {
    "actions": {
      "additionalProperty1": {
        "ack": {
          "state": "awaits_successful_execution",
          "": "string"
        },
        "last_execution": {
          "successful": true,
          "": "string",
          "reason": "string"
        },
        "last_successful_execution": {
          "successful": true,
          "": "string",
          "reason": "string"
        },
        "last_throttle": {
          "reason": "string",
          "": "string"
        }
      },
      "additionalProperty2": {
        "ack": {
          "state": "awaits_successful_execution",
          "": "string"
        },
        "last_execution": {
          "successful": true,
          "": "string",
          "reason": "string"
        },
        "last_successful_execution": {
          "successful": true,
          "": "string",
          "reason": "string"
        },
        "last_throttle": {
          "reason": "string",
          "": "string"
        }
      }
    },
    "state": {
      "active": true,
      "": "string"
    },
    "version": 42.0
  }
}