post-calendar-event.asciidoc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: post-calendar-event
  3. :request: PostCalendarEventRequest
  4. :response: PostCalendarEventResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Post Calendar Event API
  9. Adds new ScheduledEvents to an existing {ml} calendar.
  10. The API accepts a +{request}+ and responds
  11. with a +{response}+ object.
  12. [id="{upid}-{api}-request"]
  13. ==== Post Calendar Event Request
  14. A +{request}+ is constructed with a calendar ID object
  15. and a non-empty list of scheduled events.
  16. ["source","java",subs="attributes,callouts,macros"]
  17. --------------------------------------------------
  18. include-tagged::{doc-tests-file}[{api}-request]
  19. --------------------------------------------------
  20. <1> Non-null existing calendar ID
  21. <2> Non-null, non-empty collection of `ScheduledEvent` objects
  22. [id="{upid}-{api}-response"]
  23. ==== Post Calendar Event Response
  24. The returned +{response}+ contains the added `ScheduledEvent` objects:
  25. ["source","java",subs="attributes,callouts,macros"]
  26. --------------------------------------------------
  27. include-tagged::{doc-tests-file}[{api}-response]
  28. --------------------------------------------------
  29. <1> The `ScheduledEvent` objects that were added to the calendar
  30. include::../execution.asciidoc[]