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="" attribute value for each community. invitation


Provide an invitation Atom entry document.

Note: 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

Location: url

Error codes

Parent topic

Work with community invitations

Related reference
Invitation content