Newer Version Available

This content describes an older version of this product. View Latest

User Recommendations for a Specific Action and Object ID

Returns the recommendation for the specified action and object ID for the context user. Also used to delete a recommendation.
Resource
1/chatter/users/userId/recommendations/action/objectId
1/connect/communities/communityId/chatter/users/userId/recommendations/action/objectId

userId must be the ID of the context user or the alias me.

Note

  • Valid values for action:
    • follow
    • join
    • view (version 25.0 and later)
  • Valid values for objectId:
    • If action is follow, objectId is a user ID, file ID, record ID, or topic ID (version 36.0 and later).
    • If action is join, objectId is a group ID.
    • If action is view, objectId is a user ID, file ID, group ID, record ID, custom recommendation ID (version 34.0 and later), Today for static recommendations (version 35.0 and later), or an article ID (version 37.0 and later).
Available since version
24.0
Requires Chatter
Yes
HTTP methods
GET, DELETE, or HEAD
DELETE is used to remove a recommendation and is only valid for the following resources:
  • /chatter/users/userId/recommendations/follow/recommendedUserId
  • /chatter/users/userId/recommendations/follow/recommendedFileId
  • /chatter/users/userId/recommendations/follow/recommendedRecordId
  • /chatter/users/userId/recommendations/follow/recommendedTopicId
  • /chatter/users/userId/recommendations/join/recommendedGroupId
  • /chatter/users/userId/recommendations/view/customRecommendationId
  • /chatter/users/userId/recommendations/view/Today
  • /chatter/users/userId/recommendations/view/recommendedArticleId

userId must be the ID of the context user or the alias me.

Note

Response body for GET
Recommendations
Response body for DELETE
204: Successful Delete