No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Post an @Mention
- Resource
- To post a feed item with a mention, use /chatter/feed-elements
- To post a comment with a mention, use /chatter/feed-elements/feedElementId/capabilities/comments/items.
- HTTP method
- POST
- Request body
- For a feed item, use Feed Item Input
- For a comment, use Comment Input
- For either input, use the Message Segment Input: Mention
- Request body example
- This example is for a feed item:
1{ 2 "body" : { 3 "messageSegments" : [ 4 { 5 "type" : "Text", 6 "text" : "When should we meet for release planning? " 7 }, 8 { 9 "type" : "Mention", 10 "id" : "005T0000000mzCy" 11 } 12 ] 13 }, 14 "feedElementType" : "FeedItem", 15 "subjectId" : "005D00000016Qxp" 16} - This example is for a comment:
1{ "body" : 2 { 3 "messageSegments" : [ 4 { 5 "type": "mention", 6 "id" : "005D0000001GpHp" 7 }, 8 { 9 "type": "text", 10 "text" : " Did you see the new plans?" 11 } 12 ] 13 } 14} - Returns
- Feed Item
- Comment