Newer Version Available

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

Batch Input

A single batch input to nest in a batch collection input.
JSON example
Example without a binary part:
1{
2   "richInput": {
3      "subjectId": "me",
4      "body": {
5         "messageSegments": [
6         {
7            "type": "Text",
8            "text": "Post Number 1"
9         }]
10      },
11      "feedElementType": "FeedItem"
12   }
13}
Example with a binary part:
1{
2      "binaryPartNames": [
3        "bin1"
4      ],
5      "richInput": {
6        "subjectId": "me",
7        "body": {
8          "messageSegments": [
9            {
10              "type": "Text",
11              "text": "Please accept this receipt"
12            }
13          ]
14        },
15        "capabilities": {
16          "content": {
17            "description": "Receipt for expenses",
18            "title": "receipt.pdf"
19          }
20        },
21        "feedElementType": "FeedItem"
22      }
23    }
In this example, the name parameter in the Content-Disposition header of the binary body part must have the value bin1.
Properties
Name Type Description Required or Optional Available Version
binaryPartNames String[] List of the name parameters in the Content-Disposition header of the binary body parts to include with this input. If this value exists, the corresponding binary part must be included in the request.

When used with the /chatter/feed-elements/batch resource, this property can contain only one value, not a list of values.

Note

Optional 32.0
richInput An input body (request body) for the request. The richInput property must contain the request body that the resource expects.

The /chatter/feed-elements/batch resource expects a Feed Item Input request body.

Required 32.0