To add a member to the member list of a community activity, complete the following steps. If it has a category element of type community_activity, you cannot define the members; they are instead inherited from the community membership list. The returned feed lists each member of the community as a separate entry.
1. Make sure that the community activity to which you want to add members supports the addition of members. The community activity must have a category element of type explicit_membership_community_activity.
2. You can only add all or a subset of the members who belong to the community to which the activity belongs. If you add a person who is not a member of the owning community, an error is returned on the request. To find out who belongs to the owning community, complete the following steps:
Get the My Communities feed. See Searching the My Communities view.
From the My Communities feed, find the community to which this activity belongs. Within its entry, find the link element with the rel="http://www.ibm.com/xmlns/prod/sn/member-list" attribute. Make a note of the value of the associated href attribute.
Send a GET request to the web address that you noted in the previous step.
3. In the Atom documents that you create to define each member of the community activity, do not include anyone who is not listed in the member list feed of the community.
<?xml version="1.0" encoding="utf-8"?>
<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="person" />