{
  "capabilities": {
    "documentation": {
      "url": "https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities",
      "description": "Checks if the specified combination of method, API, parameters, and arbitrary capabilities are supported"
    },
    "stability": "experimental",
    "visibility": "private",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_capabilities",
          "methods": [
            "GET"
          ]
        }
      ]
    },
    "params": {
      "method": {
        "type": "enum",
        "description": "REST method to check",
        "options": [
          "GET",
          "HEAD",
          "POST",
          "PUT",
          "DELETE"
        ],
        "default": "GET"
      },
      "path": {
        "type": "string",
        "default": "/",
        "description": "API path to check"
      },
      "parameters": {
        "type": "list",
        "default": [],
        "description": "Comma-separated list of API parameters to check"
      },
      "capabilities": {
        "type": "list",
        "default": [],
        "description": "Comma-separated list of arbitrary API capabilities to check"
      },
      "local_only": {
        "type": "boolean",
        "description": "True if only the node being called should be considered",
        "default": false
      },
      "timeout": {
        "type": "time",
        "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.",
        "default": "30s"
      }
    }
  }
}
