Newer Version Available

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

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:
This example is for a comment:

Include a space in the text message segment because spaces aren’t added automatically before or after a mention.

Note

Returns
Feed Item
Comment