Newer Version Available
Working with Communities
You can request most Chatter REST API resources within a specific community. For example, you can make requests to feeds, files, groups, topics, and users resources within a specific community. If a resource is available in communities, its documentation includes a resource that starts with /connect/communities/communityId.
Some Chatter REST API resources are available only within a community. These include resources for flagging and moderating content, using managed topics, and getting information about a user’s reputation.
Resources that are available in communities are available whether you allow access without logging in or not. However, if your community allows access without logging in, guest users don’t have access to any Chatter REST API resources.
The resources that are available only within a community are listed in this table.
| Resource | HTTP Methods | Tasks |
|---|---|---|
| /connect/communities | GET | Returns a list of all communities available to the context user. |
| /connect/communities/communityId | GET | Returns information about the specified community. |
| /connect/communities/communityId/chatter/comments/commentId/moderation-flags | GET, POST, DELETE |
If the context user is a community moderator, returns the number of times a comment has been flagged
by community members. Also flags a comment for moderation and deletes all
flags on a comment. If the context user isn’t a community moderator, returns whether or not the user has flagged a comment. Also flags a comment for moderation and removes a flag the user previously added. |
| /connect/communities/communityId/chatter/feed-elements/feedElementId/capabilities/moderation | GET, POST, DELETE | Get information about a feed element's moderation capability, add a moderation flag to a feed element, or delete all moderation flags from a feed element. |
| /connect/communities/communityId/chatter/files/moderation | GET |
If the context user is a community moderator, returns the files that have been flagged by community members. |
| /connect/communities/communityId/chatter/files/fileId/moderation-flags | GET, POST, DELETE |
If the context user is a community moderator, returns the number of times a file has been flagged
by community members. Also flags a file for moderation and deletes all flags
on a file. If the context user isn’t a community moderator, returns whether or not the user has flagged a file. Also flags a file for moderation and removes a flag the user previously added. |
| /connect/communities/communityId/chatter/feeds/moderation/feed-elements | GET | If the context user is a community moderator with the “Moderate Communities Feeds” permission, returns a list of all feed elements and comments in the community that have been flagged by community members. By default, returns 25 feed elements per page of results. |
| /connect/communities/communityId/chatter/feeds/home/feed-elements | GET | Returns a list of all feed elements associated with any managed topic in the community. |
| /connect/communities/communityId/managed-topics | GET, POST, PATCH | Get all the managed topics for a community. Create a managed topic. Reorder managed topics. |
| /connect/communities/communityId/managed-topics/managedTopicId | GET, DELETE | Get information about or delete a managed topic in a community. |
| /connect/communities/communityId/chatter/users/userId/reputation | GET | Returns the specified community user's reputation. |