To create a community activity, send a POST request to the remote applications feed of the community to which you want to add the activity.
Before you begin
You cannot add activities to a community programmatically until the Activities 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 activities is available from the remote applications feed.
Provide an Atom document that contains a category element that represents the community activity.
After creating a community activity with a category of type of explicit_membership_community_activity, you can define the members of the community activity.
||From the entry in the Communities remote application feed that contains the <category term="Activities" scheme="http://www.ibm.com/xmlns/prod/sn/type" /> element, find the value of the href attribute in the <link> element that has the rel="http://www.ibm.com/xmlns/prod/sn/remote-application/feed" attribute.
<?xml version="1.0" encoding="UTF-8"?>
<category term="Activities" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category>
||The UUID of the community you wish to create the activity in.
||Choose if public or not.
||Choose whether to authenticate or not
||Link to edit_url of the new community activity. You can use the web address specified here to subsequently update the community activity.
||Created. Indicates that the community activity was successfully created. If an error occurs, this header will contain one of the error codes below.
||Forbidden. Authorization failed.
||Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.