function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ThosThos 

Communities objects via the chatter REST API

Hi there, I'm using the chatter rest API to get the mentions for feed items and comments by calling:

/services/data/v26.0/chatter/feed-items/{feed-item-id}

and

/services/data/v26.0/chatter/comments/{comment-id}

 

However when a feed item is within a communiity I'm getting 404s 

 

Is there another URL I should be using to access feed items and comments from within a specific commuinity?

 

Thanks

 

-*TOM*-

Best Answer chosen by Admin (Salesforce Developers) 
Kamyar SeradjfarKamyar Seradjfar

The to access community resources, you have to add the community context and ID to the URL. e.g.:

.../connect/communities/{community-Id}/chatter/comments/{comment-Id}

All Answers

Kamyar SeradjfarKamyar Seradjfar

The to access community resources, you have to add the community context and ID to the URL. e.g.:

.../connect/communities/{community-Id}/chatter/comments/{comment-Id}

This was selected as the best answer
ThosThos

Thanks Kamyar, that works a treat, for both comments and feed-items.