{
  "ccr.follow": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow",
      "description": "Create a follower"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/{index}/_ccr/follow",
          "methods": [
            "PUT"
          ],
          "parts": {
            "index": {
              "type": "string",
              "description": "The name of the follower index"
            }
          }
        }
      ]
    },
    "params": {
      "wait_for_active_shards": {
        "type": "string",
        "description": "Sets the number of shard copies that must be active before returning. Defaults to 0. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)",
        "default": "0"
      },
      "master_timeout": {
        "type": "time",
        "default": "30s",
        "description": "Explicit operation timeout for connection to master node"
      }
    },
    "body": {
      "description": "The name of the leader index and other optional ccr related parameters",
      "required": true
    }
  }
}
