Create subcommunities programmatically 

To create a subcommunity, send an Atom entry document containing the new subcommunity to the My Communities resource.

See Authenticating requests for information about how to authenticate the request.

Table 1. Atom API request details

Method Resource URI Input representation
POST User's My communities feed In the My Communities feed, find the value of the href attribute of the <link> element for the community to which you want to add the subcommunity that has the rel="" attribute. subcommunity


Provide a subcommunity Atom entry document. A subcommunity is the same as a community entry, but contains a rel="" <link> element. The content type of the Atom entry document must be application/atom+xml.


An Atom entry document containing the new subcommunity entry.

Returned HTTP headers

HTTP/1.1 201 Created

Location: url

Error codes

Parent topic

Work with subcommunities

Related reference
Community entry content