Retrieving the Communities Events service document
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 15, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

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.
Tags: commapi

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.

Method URI Description
GET /communities/calendar/atom/calendar/service Retrieves a user's service document which contains the Community Events Collections workspace, for a given community.
Value of the href attribute in the <link> element that has the rel="" attribute for the entry with the Calendar category in the remote applications Atom document of the community to which you add/update/delete an event.
Name Type Optional Description
string No The UUID of the calendar you wish to retrieve the service document for.
Content Type: application/atom+xml
Code Description
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
To retrieve the service document for the Communities Events widget application
> GET /communities/calendar/atom/calendar/service?calendarUuid=ae2141c3-dfc5-43e5-b9b0-79f4a55d5e02 HTTP/1.1

	> Host:

	> Accept: */*

Response returned by the server
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

	<service xmlns="" xmlns:atom="">

	<generator xmlns="" uri="" version="">

	IBM Connections - Community Events



	<atom:title type="text">Calendar</atom:title>

	<collection href="https:/">

	<atom:title type="text">Community Calendar</atom:title>

	<accept>application/atom+xml; type=entry</accept>​

	<category xmlns="" scheme="" term="calendars"/>

	<categories fixed="yes"/>




	<atom:title type="text">Demo Community</atom:title>

	<category xmlns="" scheme="" term="calendar"/>

	<collection href="https:/">

	<atom:title type="text">Event Entries</atom:title>

	<category xmlns=""scheme="" term="events"/>

	<accept>application/atom+xml; type=entry</accept>

	<categories href="https:/"/>