Files
elasticsearch-js/docs/reference-ml-put_calendar.asciidoc
2024-12-05 14:46:46 -06:00

67 lines
3.9 KiB
Plaintext

[[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 <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
=== client.ml.putCalendar
Create a calendar.
{ref}/ml-put-calendar.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(MlPutCalendarRequest, options?): Promise<MlPutCalendarResponse>
----
[discrete]
===== `MlPutCalendarRequest`
[source,ts]
----
interface MlPutCalendarRequest extends <<shared-type-request-base, RequestBase>> {
calendar_id: <<shared-type-id, Id>>
job_ids?: <<shared-type-id, Id>>[]
description?: string
}
----
[discrete]
===== `MlPutCalendarResponse`
[source,ts]
----
interface MlPutCalendarResponse {
calendar_id: <<shared-type-id, Id>>
description?: string
job_ids: <<shared-type-ids, Ids>>
}
----