{
  "search_application.post_behavioral_analytics_event": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-post-behavioral-analytics-event",
      "description": "Create a behavioral analytics collection event"
    },
    "stability": "experimental",
    "visibility": "public",
    "deprecated": {
      "version": "9.0.0",
      "description": "Behavioral Analytics has been deprecated and will be removed in a future release."
    },
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_application/analytics/{collection_name}/event/{event_type}",
          "methods": [
            "POST"
          ],
          "parts": {
            "collection_name": {
              "type": "string",
              "description": "The name of behavioral analytics collection"
            },
            "event_type": {
              "type": "enum",
              "description": "Behavioral analytics event type. Available: page_view, search, search_click",
              "options": [
                "page_view",
                "search",
                "search_click"
              ]
            }
          }
        }
      ]
    },
    "params": {
      "debug": {
        "type": "boolean",
        "description": "If true, returns event information that will be stored"
      }
    },
    "body": {
      "description": "The event definition",
      "required": true
    }
  }
}
