To add a member to the access control list of a community, send an Atom entry document containing the new member to the access control list feed. You can only add one member per post.
See Authenticating requests
for information about how to authenticate the request.
Table 1. Atom API request details
|POST||acl list feed||Found in the href attribute of <link> element that has a rel="http://www.ibm.com/xmlns/prod/sn/member-list" attribute value for each community||member|
Provide a member Atom entry document.
The content type of the Atom entry document must be application/atom+xml
An Atom entry document containing the new member entry.
Returned HTTP headers
HTTP/1.1 201 Created
Indicates that the member was successfully added to the acl list. If an error occurs, this header will contain one of the error codes below.Location: url
Link to edit_url of the new member entry. You can use the web address specified here to subsequently retrieve and update the member entry.Error codes
- HTTP/1.1 400 Bad Request
- HTTP/1.1 403 Forbidden
Parent topic: Working with community members
Adding a member programmatically
Member entry content