Following - POST
POST {{_endpoint}}/services/data/v{{version}}/chatter/users/:USER_ID/following?subjectId=<RECORD_ID>
Returns a list of people, groups, records, topics, and files that the specified user is following. Also used to follow records.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
subjectId | string |
RESPONSES
status: Created
{"community":null,"id":"0E8...","subject":{"entityLabel":{"label":"Account","labelPlural":"Accounts"},"id":"001...","motif":{"color":"5867E8","largeIconUrl":"/img/icon/accounts64.png","mediumIconUrl":"/img/icon/accounts32.png","smallIconUrl":"/img/icon/accounts16.png","svgIconUrl":null},"mySubscription":null,"name":"Exemple de comptes pour les autorisations","type":"Account","url":"/services/data/v58.0/chatter/records/001..."},"subscriber":{"additionalLabel":null,"communityNickname":"integration1.4407085834085586E12","companyName":"Salesforce","displayName":"Integration User","firstName":"Integration","id":"005...","isActive":true,"isInThisCommunity":true,"lastName":"User","motif":{"color":"1B96FF","largeIconUrl":"/img/icon/profile64.png","mediumIconUrl":"/img/icon/profile32.png","smallIconUrl":"/img/icon/profile16.png","svgIconUrl":null},"mySubscription":null,"name":"Integration User","outOfOffice":{"message":""},"photo":{"fullEmailPhotoUrl":"https://\u003cmy_domain\u003e/img/userprofile/default_profile_200_v2.png?fromEmail=1","largePhotoUrl":"https://\u003cmy_domain\u003e/profilephoto/005/F","mediumPhotoUrl":"https://\u003cmy_domain\u003e/profilephoto/005/M","photoVersionId":null,"smallPhotoUrl":"https://\u003cmy_domain\u003e/profilephoto/005/T","standardEmailPhotoUrl":"https://\u003cmy_domain\u003e/img/userprofile/default_profile_45_v2.png?fromEmail=1","url":"/services/data/v58.0/connect/user-profiles/005.../photo"},"reputation":null,"title":null,"type":"User","url":"/services/data/v58.0/chatter/users/005...","userType":"Internal"},"url":"/services/data/v58.0/chatter/subscriptions/0E8..."}