2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: put-calendar
|
|
|
|
:request: PutCalendarRequest
|
|
|
|
:response: PutCalendarResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}"]
|
2020-10-02 17:01:01 -04:00
|
|
|
=== Put calendars API
|
|
|
|
|
2018-09-14 10:00:18 -04:00
|
|
|
Creates a new {ml} calendar.
|
2018-10-05 11:45:46 -04:00
|
|
|
The API accepts a +{request}+ and responds
|
|
|
|
with a +{response}+ object.
|
2018-09-14 10:00:18 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2020-10-02 17:01:01 -04:00
|
|
|
==== Put calendars request
|
2018-09-14 10:00:18 -04:00
|
|
|
|
2019-07-25 14:20:42 -04:00
|
|
|
A +{request}+ is constructed with a calendar object
|
2018-09-14 10:00:18 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-09-14 10:00:18 -04:00
|
|
|
--------------------------------------------------
|
2019-07-25 14:20:42 -04:00
|
|
|
<1> Create a request with the given calendar.
|
2018-09-14 10:00:18 -04:00
|
|
|
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2020-10-02 17:01:01 -04:00
|
|
|
==== Put calendars response
|
2018-09-14 10:00:18 -04:00
|
|
|
|
2019-07-25 14:20:42 -04:00
|
|
|
The returned +{response}+ contains the created calendar:
|
2018-09-14 10:00:18 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-09-14 10:00:18 -04:00
|
|
|
--------------------------------------------------
|
2019-07-25 14:20:42 -04:00
|
|
|
<1> The created calendar.
|
2018-09-14 10:00:18 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|