[[reference-ml-put_job]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] [[client.ml.putJob]] === client.ml.putJob Create an anomaly detection job. If you include a `datafeed_config`, you must have read index privileges on the source index. {ref}/ml-put-job.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlPutJobRequest, options?): Promise ---- [discrete] ==== Request [pass] ++++
++++
interface MlPutJobRequest extends <> {
  job_id: <>
  allow_lazy_open?: boolean
  analysis_config: <>
  analysis_limits?: <>
  background_persist_interval?: <>
  custom_settings?: <>
  daily_model_snapshot_retention_after_days?: <>
  data_description: <>
  datafeed_config?: <>
  description?: string
  groups?: string[]
  model_plot_config?: <>
  model_snapshot_retention_days?: <>
  renormalization_window_days?: <>
  results_index_name?: <>
  results_retention_days?: <>
}

[pass]
++++
++++ [discrete] ==== Response [pass] ++++
++++
interface MlPutJobResponse {
  allow_lazy_open: boolean
  analysis_config: <>
  analysis_limits: <>
  background_persist_interval?: <>
  create_time: <>
  custom_settings?: <>
  daily_model_snapshot_retention_after_days: <>
  data_description: <>
  datafeed_config?: <>
  description?: string
  groups?: string[]
  job_id: <>
  job_type: string
  job_version: string
  model_plot_config?: <>
  model_snapshot_id?: <>
  model_snapshot_retention_days: <>
  renormalization_window_days?: <>
  results_index_name: string
  results_retention_days?: <>
}

[pass]
++++
++++