Newer Version Available
Feed Elements, Batch Post
- Resource
-
- Available version
- 32.0
- Requires Chatter
- Yes
- HTTP methods
- POST, HEAD
- Request body for POST
- Batch Collection Input
- The rich input for this batch collection is a Feed Item Input
- Response body for POST
- Batch Results
- The Batch Results response body contains Feed Item response bodies corresponding to each of the request bodies. The Feed Item response bodies are returned in the same order as the request bodies.
- The request returns an HTTP 200 status code unless an error occurs that affects the entire request (such as a parsing failure). If an individual request body causes an error, the Batch Results Item statusCode property contains the appropriate HTTP status code.
- Post a batch of feed elements
- This example uses the /chatter/feed-elements/batch resource to post a batch of feed elements. This
example uses
cURL.
- Here’s the same example showing just the request
body:
Post a batch of feed elements with binary files (version 35.0 and earlier)
This example uses the /chatter/feed-elements/batch resource to post a batch of feed elements,
upload two binary files, and attach them to the feed elements in the batch. Include the
information about the binary parts in the request body. This example uses
cURL.
Here
is the same example formatted to show the request body
parts.