The first step you must perform if you plan to update resources made available through the Atom APIs is to retrieve the service document for the application.
Before you begin
You cannot add an event to a community programmatically until the Events widget has been added to the community using the Customize menu option in the product user interface. It is not until the widget is explicitly added that the service document resource for Community Events is available from the remote applications feed.
See Authenticating requests
for information about how to authenticate the request.