{
  "text_structure.test_grok_pattern": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-test-grok-pattern",
      "description": "Test a Grok pattern"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_text_structure/test_grok_pattern",
          "methods": [
            "GET",
            "POST"
          ]
        }
      ]
    },
    "params": {
      "ecs_compatibility": {
        "type": "string",
        "default": "disabled",
        "description": "Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled'"
      }
    },
    "body": {
      "description": "The Grok pattern and text.",
      "required": true
    }
  }
}
