To invite someone to a community, send an Atom entry document containing the invitation to the community invitations-list resource.
See Authenticating requests
for information about how to authenticate the request.
Table 1. Atom API request details
|POST||Community invitations list||Value of the href attribute of the <link> element with the rel="http://www.ibm.com/xmlns/prod/sn/invitations-list" attribute value for each community.||invitation|
Provide an invitation Atom entry document.
The content type of the Atom entry document must be application/atom+xml
An Atom entry document containing the new invitation.
Returned HTTP headers
HTTP/1.1 201 Created
Indicates that the invitation was successfully created. If an error occurs, this header contains one of the error codes.Location: url
Link to edit_url of the invitation. You can use the web address specified here to subsequently retrieve and update the invitation.Error codes
- HTTP/1.1 403 Unauthorized
- HTTP/1.1 404 Not Found
- HTTP/1.1 409 Conflict: Returned if the user is already a member of the community.
Parent topic: Working with community invitations