| 12345678910111213141516171819202122232425262728293031323334353637 | --:api: put-calendar:request: PutCalendarRequest:response: PutCalendarResponse--[role="xpack"][id="{upid}-{api}"]=== Create calendars APICreates a new {ml} calendar.The API accepts a +{request}+ and respondswith a +{response}+ object.[id="{upid}-{api}-request"]==== RequestA +{request}+ is constructed with a calendar object["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> Create a request with the given calendar.[id="{upid}-{api}-response"]==== ResponseThe returned +{response}+ contains the created calendar:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> The created calendar.include::../execution.asciidoc[]
 |