[[reference-ml-put_calendar]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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.putCalendar]] === client.ml.putCalendar Create a calendar. {ref}/ml-put-calendar.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlPutCalendarRequest, options?): Promise ---- [discrete] ==== MlPutCalendarRequest [pass] ++++
++++
interface MlPutCalendarRequest extends <> {
  calendar_id: <>
  job_ids?: <>[]
  description?: string
}

[pass]
++++
++++ [discrete] ==== MlPutCalendarResponse [pass] ++++
++++
interface MlPutCalendarResponse {
  calendar_id: <>
  description?: string
  job_ids: <>
}

[pass]
++++
++++