Post Multiple @Mentions

Post up to 25 mentions in a Chatter feed item or comment.
Resource
To post a feed item with up to 25 mentions, use /chatter/feed-elements.
To post a comment with up to 25 mentions, 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

Both of these input request bodies include a body property that is a Message Body Input request body. In these examples, the Message Body Input request body includes a messageSegments property that has two Message Segment Input: Text request bodies and two Message Segment Input: Mention request bodies.

Request body example
This example is for a feed item:
This example is for a comment:

Include spaces where you need them because spaces aren’t added automatically before or after a mention.

Note

Returns
Feed Item
Comment