Feed Elements, Batch Post

POST {{_endpoint}}/services/data/v{{version}}/chatter/feed-elements/batch

Post a batch of up to 500 feed elements.

https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_feed_element_batch_post.htm

Request Body

{"inputs"=>[{"richInput"=>{"subjectId"=>"<USER_GROUP_RECORD_ID>", "body"=>{"messageSegments"=>[{"type"=>"Text", "text"=>"Post Number 1"}]}, "capabilities"=>{"files"=>{"items"=>[{"id"=>"<FILE_ID>"}]}}, "feedElementType"=>"FeedItem"}}, {"richInput"=>{"subjectId"=>"<USER_GROUP_RECORD_ID>", "body"=>{"messageSegments"=>[{"type"=>"Text", "text"=>"Post Number 2"}]}, "feedElementType"=>"FeedItem"}}, {"richInput"=>{"subjectId"=>"me", "body"=>{"messageSegments"=>[{"type"=>"Text", "text"=>"Post Number 3 with Inline"}, {"type"=>"InlineImage", "fileId"=>"<FILE_ID>", "altText"=>"Test Inline"}]}, "feedElementType"=>"FeedItem"}}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;hasErrors&quot;:true,&quot;results&quot;:[{&quot;result&quot;:{&quot;actor&quot;:{&quot;additionalLabel&quot;:null,&quot;communityNickname&quot;:&quot;User1696423780773910041&quot;,&quot;companyName&quot;:&quot;Salesforce&quot;,&quot;displayName&quot;:&quot;Name&quot;,&quot;firstName&quot;:&quot;Firstname&quot;,&quot;id&quot;:&quot;005...&quot;,&quot;isActive&quot;:true,&quot;isInThisCommunity&quot;:true,&quot;lastName&quot;:&quot;Name&quot;,&quot;motif&quot;:{&quot;color&quot;:&quot;1B96FF&quot;,&quot;largeIconUrl&quot;:&quot;/img/icon/profile64.png&quot;,&quot;mediumIconUrl&quot;:&quot;/img/icon/profile32.png&quot;,&quot;smallIconUrl&quot;:&quot;/img/icon/profile16.png&quot;,&quot;svgIconUrl&quot;:null},&quot;mySubscription&quot;:null,&quot;name&quot;:&quot;Name&quot;,&quot;outOfOffice&quot;:{&quot;message&quot;:&quot;&quot;},&quot;photo&quot;:{&quot;fullEmailPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1&quot;,&quot;largePhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../F&quot;,&quot;mediumPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../M&quot;,&quot;photoVersionId&quot;:&quot;729...&quot;,&quot;smallPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../T&quot;,&quot;standardEmailPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1&quot;,&quot;url&quot;:&quot;/services/data/v58.0/connect/user-profiles/005.../photo&quot;},&quot;reputation&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;User&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/users/005...&quot;,&quot;userType&quot;:&quot;Internal&quot;},&quot;body&quot;:{&quot;isRichText&quot;:false,&quot;messageSegments&quot;:[{&quot;text&quot;:&quot;Post Number 1&quot;,&quot;type&quot;:&quot;Text&quot;}],&quot;text&quot;:&quot;Post Number 1&quot;},&quot;capabilities&quot;:{&quot;associatedActions&quot;:{&quot;platformActionGroups&quot;:[]},&quot;bookmarks&quot;:{&quot;isBookmarkedByCurrentUser&quot;:false},&quot;chatterLikes&quot;:{&quot;isLikedByCurrentUser&quot;:false,&quot;likesMessage&quot;:null,&quot;myLike&quot;:null,&quot;page&quot;:{&quot;currentPageToken&quot;:0,&quot;currentPageUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/chatter-likes/items&quot;,&quot;items&quot;:[],&quot;nextPageToken&quot;:null,&quot;nextPageUrl&quot;:null,&quot;previousPageToken&quot;:null,&quot;previousPageUrl&quot;:null,&quot;total&quot;:0}},&quot;close&quot;:{&quot;canContextUserUpdateIsClosed&quot;:true,&quot;isClosed&quot;:false},&quot;comments&quot;:{&quot;page&quot;:{&quot;currentPageToken&quot;:null,&quot;currentPageUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/comments/items&quot;,&quot;items&quot;:[],&quot;nextPageToken&quot;:null,&quot;nextPageUrl&quot;:null,&quot;previousPageToken&quot;:null,&quot;previousPageUrl&quot;:null,&quot;total&quot;:0}},&quot;edit&quot;:{&quot;isEditRestricted&quot;:false,&quot;isEditableByMeUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/edit/is-editable-by-me&quot;,&quot;lastEditedBy&quot;:null,&quot;lastEditedDate&quot;:null,&quot;latestRevision&quot;:1,&quot;relativeLastEditedDate&quot;:null},&quot;interactions&quot;:{&quot;count&quot;:0},&quot;mute&quot;:{&quot;isMutedByMe&quot;:false},&quot;readBy&quot;:{&quot;isReadByMe&quot;:true,&quot;lastReadDateByMe&quot;:&quot;2023-11-22T11:11:25.000Z&quot;,&quot;page&quot;:{&quot;currentPageToken&quot;:null,&quot;currentPageUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/read-by/items?pageSize=3&quot;,&quot;items&quot;:[],&quot;nextPageToken&quot;:null,&quot;nextPageUrl&quot;:null,&quot;previousPageToken&quot;:null,&quot;previousPageUrl&quot;:null,&quot;total&quot;:0}},&quot;status&quot;:{&quot;feedEntityStatus&quot;:&quot;Published&quot;,&quot;isApprovableByMe&quot;:true},&quot;topics&quot;:{&quot;canAssignTopics&quot;:true,&quot;items&quot;:[]},&quot;upDownVote&quot;:{&quot;downVoteCount&quot;:0,&quot;myVote&quot;:&quot;None&quot;,&quot;upVoteCount&quot;:0}},&quot;clientInfo&quot;:{&quot;applicationName&quot;:&quot;Postman Playground&quot;,&quot;applicationUrl&quot;:null},&quot;createdDate&quot;:&quot;2023-11-22T11:11:25.000Z&quot;,&quot;event&quot;:false,&quot;feedElementType&quot;:&quot;FeedItem&quot;,&quot;hasVerifiedComment&quot;:false,&quot;header&quot;:{&quot;isRichText&quot;:null,&quot;messageSegments&quot;:[{&quot;motif&quot;:{&quot;color&quot;:&quot;1B96FF&quot;,&quot;largeIconUrl&quot;:&quot;/img/icon/profile64.png&quot;,&quot;mediumIconUrl&quot;:&quot;/img/icon/profile32.png&quot;,&quot;smallIconUrl&quot;:&quot;/img/icon/profile16.png&quot;,&quot;svgIconUrl&quot;:null},&quot;reference&quot;:{&quot;id&quot;:&quot;005...&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/users/005...&quot;},&quot;text&quot;:&quot;Name&quot;,&quot;type&quot;:&quot;EntityLink&quot;}],&quot;text&quot;:&quot;Name&quot;},&quot;id&quot;:&quot;0D5...&quot;,&quot;isDeleteRestricted&quot;:false,&quot;isSharable&quot;:false,&quot;modifiedDate&quot;:&quot;2023-11-22T11:11:25.000Z&quot;,&quot;originalFeedItem&quot;:null,&quot;originalFeedItemActor&quot;:null,&quot;parent&quot;:{&quot;entityLabel&quot;:{&quot;label&quot;:&quot;Account&quot;,&quot;labelPlural&quot;:&quot;Accounts&quot;},&quot;id&quot;:&quot;001...&quot;,&quot;motif&quot;:{&quot;color&quot;:&quot;5867E8&quot;,&quot;largeIconUrl&quot;:&quot;/img/icon/accounts64.png&quot;,&quot;mediumIconUrl&quot;:&quot;/img/icon/accounts32.png&quot;,&quot;smallIconUrl&quot;:&quot;/img/icon/accounts16.png&quot;,&quot;svgIconUrl&quot;:null},&quot;mySubscription&quot;:null,&quot;name&quot;:&quot;Burlington Textiles Corp of America&quot;,&quot;type&quot;:&quot;Account&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/records/001...&quot;},&quot;photoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../T&quot;,&quot;relativeCreatedDate&quot;:&quot;Just now&quot;,&quot;type&quot;:&quot;TextPost&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5...&quot;,&quot;visibility&quot;:&quot;InternalUsers&quot;},&quot;statusCode&quot;:201},{&quot;result&quot;:{&quot;actor&quot;:{&quot;additionalLabel&quot;:null,&quot;communityNickname&quot;:&quot;User1696423780773910041&quot;,&quot;companyName&quot;:&quot;Salesforce&quot;,&quot;displayName&quot;:&quot;Name&quot;,&quot;firstName&quot;:&quot;Firstname&quot;,&quot;id&quot;:&quot;005...&quot;,&quot;isActive&quot;:true,&quot;isInThisCommunity&quot;:true,&quot;lastName&quot;:&quot;Name&quot;,&quot;motif&quot;:{&quot;color&quot;:&quot;1B96FF&quot;,&quot;largeIconUrl&quot;:&quot;/img/icon/profile64.png&quot;,&quot;mediumIconUrl&quot;:&quot;/img/icon/profile32.png&quot;,&quot;smallIconUrl&quot;:&quot;/img/icon/profile16.png&quot;,&quot;svgIconUrl&quot;:null},&quot;mySubscription&quot;:null,&quot;name&quot;:&quot;Name&quot;,&quot;outOfOffice&quot;:{&quot;message&quot;:&quot;&quot;},&quot;photo&quot;:{&quot;fullEmailPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1&quot;,&quot;largePhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../F&quot;,&quot;mediumPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../M&quot;,&quot;photoVersionId&quot;:&quot;729...&quot;,&quot;smallPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../T&quot;,&quot;standardEmailPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1&quot;,&quot;url&quot;:&quot;/services/data/v58.0/connect/user-profiles/005.../photo&quot;},&quot;reputation&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;User&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/users/005...&quot;,&quot;userType&quot;:&quot;Internal&quot;},&quot;body&quot;:{&quot;isRichText&quot;:false,&quot;messageSegments&quot;:[{&quot;text&quot;:&quot;Post Number 2&quot;,&quot;type&quot;:&quot;Text&quot;}],&quot;text&quot;:&quot;Post Number 2&quot;},&quot;capabilities&quot;:{&quot;associatedActions&quot;:{&quot;platformActionGroups&quot;:[]},&quot;bookmarks&quot;:{&quot;isBookmarkedByCurrentUser&quot;:false},&quot;chatterLikes&quot;:{&quot;isLikedByCurrentUser&quot;:false,&quot;likesMessage&quot;:null,&quot;myLike&quot;:null,&quot;page&quot;:{&quot;currentPageToken&quot;:0,&quot;currentPageUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/chatter-likes/items&quot;,&quot;items&quot;:[],&quot;nextPageToken&quot;:null,&quot;nextPageUrl&quot;:null,&quot;previousPageToken&quot;:null,&quot;previousPageUrl&quot;:null,&quot;total&quot;:0}},&quot;close&quot;:{&quot;canContextUserUpdateIsClosed&quot;:true,&quot;isClosed&quot;:false},&quot;comments&quot;:{&quot;page&quot;:{&quot;currentPageToken&quot;:null,&quot;currentPageUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/comments/items&quot;,&quot;items&quot;:[],&quot;nextPageToken&quot;:null,&quot;nextPageUrl&quot;:null,&quot;previousPageToken&quot;:null,&quot;previousPageUrl&quot;:null,&quot;total&quot;:0}},&quot;edit&quot;:{&quot;isEditRestricted&quot;:false,&quot;isEditableByMeUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/edit/is-editable-by-me&quot;,&quot;lastEditedBy&quot;:null,&quot;lastEditedDate&quot;:null,&quot;latestRevision&quot;:1,&quot;relativeLastEditedDate&quot;:null},&quot;interactions&quot;:{&quot;count&quot;:0},&quot;mute&quot;:{&quot;isMutedByMe&quot;:false},&quot;readBy&quot;:{&quot;isReadByMe&quot;:true,&quot;lastReadDateByMe&quot;:&quot;2023-11-22T11:11:25.000Z&quot;,&quot;page&quot;:{&quot;currentPageToken&quot;:null,&quot;currentPageUrl&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/read-by/items?pageSize=3&quot;,&quot;items&quot;:[],&quot;nextPageToken&quot;:null,&quot;nextPageUrl&quot;:null,&quot;previousPageToken&quot;:null,&quot;previousPageUrl&quot;:null,&quot;total&quot;:0}},&quot;status&quot;:{&quot;feedEntityStatus&quot;:&quot;Published&quot;,&quot;isApprovableByMe&quot;:true},&quot;topics&quot;:{&quot;canAssignTopics&quot;:true,&quot;items&quot;:[]},&quot;upDownVote&quot;:{&quot;downVoteCount&quot;:0,&quot;myVote&quot;:&quot;None&quot;,&quot;upVoteCount&quot;:0}},&quot;clientInfo&quot;:{&quot;applicationName&quot;:&quot;Postman Playground&quot;,&quot;applicationUrl&quot;:null},&quot;createdDate&quot;:&quot;2023-11-22T11:11:25.000Z&quot;,&quot;event&quot;:false,&quot;feedElementType&quot;:&quot;FeedItem&quot;,&quot;hasVerifiedComment&quot;:false,&quot;header&quot;:{&quot;isRichText&quot;:null,&quot;messageSegments&quot;:[{&quot;motif&quot;:{&quot;color&quot;:&quot;1B96FF&quot;,&quot;largeIconUrl&quot;:&quot;/img/icon/profile64.png&quot;,&quot;mediumIconUrl&quot;:&quot;/img/icon/profile32.png&quot;,&quot;smallIconUrl&quot;:&quot;/img/icon/profile16.png&quot;,&quot;svgIconUrl&quot;:null},&quot;reference&quot;:{&quot;id&quot;:&quot;005...&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/users/005...&quot;},&quot;text&quot;:&quot;Name&quot;,&quot;type&quot;:&quot;EntityLink&quot;}],&quot;text&quot;:&quot;Name&quot;},&quot;id&quot;:&quot;0D5...&quot;,&quot;isDeleteRestricted&quot;:false,&quot;isSharable&quot;:true,&quot;modifiedDate&quot;:&quot;2023-11-22T11:11:25.000Z&quot;,&quot;originalFeedItem&quot;:null,&quot;originalFeedItemActor&quot;:null,&quot;parent&quot;:{&quot;additionalLabel&quot;:null,&quot;communityNickname&quot;:&quot;User1696423780773910041&quot;,&quot;companyName&quot;:&quot;Salesforce&quot;,&quot;displayName&quot;:&quot;Name&quot;,&quot;firstName&quot;:&quot;Firstname&quot;,&quot;id&quot;:&quot;005...&quot;,&quot;isActive&quot;:true,&quot;isInThisCommunity&quot;:true,&quot;lastName&quot;:&quot;Name&quot;,&quot;motif&quot;:{&quot;color&quot;:&quot;1B96FF&quot;,&quot;largeIconUrl&quot;:&quot;/img/icon/profile64.png&quot;,&quot;mediumIconUrl&quot;:&quot;/img/icon/profile32.png&quot;,&quot;smallIconUrl&quot;:&quot;/img/icon/profile16.png&quot;,&quot;svgIconUrl&quot;:null},&quot;mySubscription&quot;:null,&quot;name&quot;:&quot;Name&quot;,&quot;outOfOffice&quot;:{&quot;message&quot;:&quot;&quot;},&quot;photo&quot;:{&quot;fullEmailPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1&quot;,&quot;largePhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../F&quot;,&quot;mediumPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../M&quot;,&quot;photoVersionId&quot;:&quot;729...&quot;,&quot;smallPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../T&quot;,&quot;standardEmailPhotoUrl&quot;:&quot;https://\u003cmy_domain\u003e/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1&quot;,&quot;url&quot;:&quot;/services/data/v58.0/connect/user-profiles/005.../photo&quot;},&quot;reputation&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;User&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/users/005...&quot;,&quot;userType&quot;:&quot;Internal&quot;},&quot;photoUrl&quot;:&quot;https://\u003cmy_domain\u003e/profilephoto/729.../T&quot;,&quot;relativeCreatedDate&quot;:&quot;Just now&quot;,&quot;type&quot;:&quot;TextPost&quot;,&quot;url&quot;:&quot;/services/data/v58.0/chatter/feed-elements/0D5...&quot;,&quot;visibility&quot;:&quot;AllUsers&quot;},&quot;statusCode&quot;:201},{&quot;result&quot;:[{&quot;errorCode&quot;:&quot;INVALID_MARKUP&quot;,&quot;message&quot;:&quot;Error while parsing Rich Text Content: The value of attribute \u0026quot;src\u0026quot; associated with an element type \u0026quot;img\u0026quot; must not contain the \u0026#39;\u0026lt;\u0026#39; character.&quot;}],&quot;statusCode&quot;:400}]}