OpenSearch/docs/java-rest/high-level/ml/put-calendar.asciidoc

37 lines
978 B
Plaintext
Raw Normal View History

--
:api: put-calendar
:request: PutCalendarRequest
:response: PutCalendarResponse
--
[role="xpack"]
[id="{upid}-{api}"]
=== Put calendar API
2018-09-14 10:00:18 -04:00
Creates a new {ml} calendar.
The API accepts a +{request}+ and responds
with a +{response}+ object.
2018-09-14 10:00:18 -04:00
[id="{upid}-{api}-request"]
==== Put calendar request
2018-09-14 10:00:18 -04:00
A +{request}+ is constructed with a calendar object
2018-09-14 10:00:18 -04:00
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
2018-09-14 10:00:18 -04:00
--------------------------------------------------
<1> Create a request with the given calendar.
2018-09-14 10:00:18 -04:00
[id="{upid}-{api}-response"]
2018-09-14 10:00:18 -04:00
==== Put Calendar Response
The returned +{response}+ contains the created calendar:
2018-09-14 10:00:18 -04:00
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
2018-09-14 10:00:18 -04:00
--------------------------------------------------
<1> The created calendar.
2018-09-14 10:00:18 -04:00
include::../execution.asciidoc[]