Creating a community invitation
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

You can use the Community Invitation API with the POST method to create an invitation to a certain community.
Tags: commapi
 
Input
Method URI Description
POST /communities/service/atom/community/invites 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.
Content Type: application/atom+xml
Name Type Optional Description
communityUuid
string No The UUID of the community you wish to add an invitation to. This is a mandatory parameter
userid
string No id of user you wish to invite
Output
Content Type: application/atom+xml
Name Type Optional Description
Location
string No Link to edit_url of the invitation. You can use the web address specified here to subsequently retrieve and update the invitation.
Code Description
201
Created. Indicates that the invitation was successfully created. If an error occurs, this header contains one of the error codes.
403
Unauthorized.
404
Not Found
409
Conflict. Returned if the user is already a member of the community.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
References