---
schema_version: "1"
id: a24fab09d2f2a386511dfaefdfd6bcf0f17320aabf629a1db2de9d5c1120a1f9
title: ConnectApi.FeedElementInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_feed_element.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_feed_element.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3ea91dbd87c798e2abe1dafe5b97194376be124bca5d276b9cb12e891406624b
description: Feed elements are the top-level items that a feed contains. Feeds are feed element containers.
---
# ConnectApi.FeedElementInput

Feed elements are the top-level items that a feed contains. Feeds are feed element containers.

This class is abstract and has no public constructor. You can make an instance only of a subclass.

Superclass of [ConnectApi.FeedItemInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_feedItem.htm "Used to create rich feed items, for example, feed items that include @mentions or files.").

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d643352e54">Property</th>

              <th class="featureTableHeader vertical-align-top " id="d643352e57">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d643352e60">Description</th>

              <th class="featureTableHeader  " id="d643352e63">Required or Optional</th>

              <th class="featureTableHeader vertical-align-top " id="d643352e66">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d643352e54 d643352e66" data-title="Property"><samp class="codeph apex_code">capabilities</samp></td>

              <td class="entry" headers="d643352e57" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_feed_element_capabilities.htm#apex_connectapi_input_feed_element_capabilities" title="A container for all capabilities that can be included when creating a feed element.">ConnectApi.​FeedElement​CapabilitiesInput</a></samp></td>

              <td class="entry" headers="d643352e60" data-title="Description"><span class="ph" id="capabilities"><a name="capabilities"><!-- --></a>The capabilities that define auxiliary information on
                  this feed element.</span></td>

              <td class="entry" headers="d643352e63" data-title="Required or Optional">Optional</td>

              <td class="entry" headers="d643352e54 d643352e66" data-title="Property">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d643352e54 d643352e66" data-title="Property"><samp class="codeph apex_code">feedElementType</samp></td>

              <td class="entry" headers="d643352e57" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_enums.htm#FeedElementTypeEnum">ConnectApi.​FeedElementType</a></samp></td>

              <td class="entry" headers="d643352e60" data-title="Description"><span class="ph" id="feedElementType"><a name="feedElementType"><!-- --></a>The type of feed element this input represents.
                </span></td>

              <td class="entry" headers="d643352e63" data-title="Required or Optional">Required when creating a feed element<p class="p">Optional when updating a feed
                  element</p>
              </td>

              <td class="entry" headers="d643352e54 d643352e66" data-title="Property">31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d643352e54 d643352e66" data-title="Property"><samp class="codeph apex_code">subjectId</samp></td>

              <td class="entry" headers="d643352e57" data-title="Type">String</td>

              <td class="entry" headers="d643352e60" data-title="Description">
                <span class="ph" id="subjectId"><a name="subjectId"><!-- --></a>The ID of the parent this feed element is being posted to.
                  This value can be the ID of a user, group, or record, or the string <samp class="codeph apex_code">me</samp> to indicate the context user.</span>
                <p class="p" id="subjectIdReparent"><a name="subjectIdReparent"><!-- --></a>In version 45.0 and later, you can move a feed element from
                  one public group to another by setting this property to the ID of the new public
                  group. You can’t include or change any other properties when moving a feed
                  element.</p>
              </td>

              <td class="entry" headers="d643352e63" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d643352e54 d643352e66" data-title="Property">31.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [Post a Feed Element with a Mention](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_post_feed_element_mention.htm "Post a Feed Element with a Mention - HTML (New Window)")
- [Post a Feed Element with Existing Content](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_post_feed_element_content.htm "Post a Feed Element with Existing Content - HTML (New Window)")
- [Post a Feed Element with a New File (Binary) Attachment](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_post_feed_element_binary.htm "Post a Feed Element with a New File (Binary) Attachment - HTML (New Window)")
- [Define an Action Link and Post with a Feed Element](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_define_post_action_link.htm "Define an Action Link and Post with a Feed Element - HTML (New Window)")
- [Define an Action Link in a Template and Post with a Feed Element](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_define_post_action_link_template.htm "Define an Action Link in a Template and Post with a Feed Element - HTML (New Window)")
- [Share a Feed Element (in Version 39.0 and Later)](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_share_feed_element_comment.htm "Share a Feed Element (in Version 39.0 and Later) - HTML (New Window)")
- [Edit a Feed Element](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_edit_feed_element.htm "Edit a Feed Element - HTML (New Window)")
- [Edit a Question Title and Post](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_edit_question_title_post.htm "Edit a Question Title and Post - HTML (New Window)")
- [Post a Rich-Text Feed Element with Inline Image](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_post_feed_element_richtext_inlineimage.htm "Post a Rich-Text Feed Element with Inline Image - HTML (New Window)")