Create a community invitation programmatically
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
Method Resource URI Input representation 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
Input
Provide an invitation Atom entry document.Note: The content type of the Atom entry document must be application/atom+xml.
Output
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.
- 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
Work with community invitationsRelated reference
Invitation content
});