Newer Version Available

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

Feed Item Input

Root XML tag
<feedItem>
JSON
The following example attaches a poll to a feed item:
1{ "attachment": 
2  {
3     "attachmentType":"Poll",
4     "pollChoices": [
5        "Monday", 
6        "Tuesday"
7     ]
8  },
9  "body" : {
10     "messageSegments" : [
11     {
12        "type" : "Text",
13        "text" : "When should we meet for release planning?"
14     }
15     ]
16  }
17}
Properties
Name Type Description Available Version
attachment Depends on type. Optional. You can specify only one of these values in the attachment parameter. Values are:
body Message Body Input Description of message body. The body can contain up to 25 mentions.

If you specify originalFeedItemId to share a feed item, use the body property to add a comment to the feed item.

If this feed item is shared, this value is the body of the first comment.

23.0
isBookmarked​ByCurrentUser Boolean Optional. Specifies if the new feed item should be bookmarked for the user (true) or not (false). Default value is false. 24.0
originalFeedItemId String Optional. If this feed item is shared, this is the original feed item 18-character ID

This parameter takes precedence over all other parameters. For example, if you share a post and also try to upload a file, the generated feed-item only contains the shared post. You should only share a post or upload a file, not both in the same post.

Note

24.0
visibility String Optional. Who can see the post. Valid values are:
  • InternalUsers—If Communities is enabled, only members of the default, internal community can see the feed item.
  • AllUsers—If Communities is enabled, all members of the community can see the feed item.
Default values:
  • For external users, the default value is AllUsers. External users must use this value to see their posts.
  • For internal users, the default value is InternalUsers. Internal users can accept this value or use the value AllUsers to allow external users to see their posts.
If the parent of the feed item is a User or a Group, the visibility of the feed item must be AllUsers.
26.0