post-calendar-event.asciidoc 1.2 KB

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