Creating community events
Added by IBM contributorIBM | Edited by IBM contributorPaul Bastide on November 11, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To create a community events, send an Atom entry document containing the new event entry to the Community Events widget's Event Entries resource.
Tags: commapi

To create a community event, complete the following steps:

1. Retrieve the Community Events service document. See Retrieving the Communities Events service document.
2. In the service document, locate the Event Entries Atom collection within the workspace, and then copy the web address in the href attribute of the Event Entries collection.
3. Send a POST request to the web address that you noted in the previous step. Pass a community event Atom entry document as input on the request.
Method URI Description
POST /communities/calendar/atom/calendar/event Value of the href attribute of <collection title="Event Entries"> element in User's Service Document
Content Type: application/atom+xml
Sample Request:
<entry xmlns:snx="" (  xmlns:atom="" (  xmlns=""> ( 
<title type="text">Test</title>
<content type="html"><p dir="ltr">Test</p> </content>
<category scheme="" (  term="event"></category>
<snx:recurrence custom="yes">
Name Type Optional Description
string No The UUID of calendar you wish to create an event in.
Content Type: application/atom+xml
Code Description
Indicates that the community event was successfully created. If an error occurs, this header contains one of the error codes.
Not Found.