---
schema_version: "1"
id: 25332dcd998683525f2f07c17b0c86a3d733094aef50b719673f824bbfad7d4b
title: ConnectApi.BatchInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_batch.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_batch.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ffe3b4aa2774df7b2a8f609214b935b65bb90a307452d7ec4780894dbe153e0c
description: Construct a set of inputs to be passed into a method at the same time.
---
# ConnectApi.BatchInput

Construct a set of inputs to be passed into a method at the same time.

Use this constructor when there isn’t a binary input:

ConnectApi.BatchInput(Object input)

Use this constructor to pass one binary input:

ConnectApi.BatchInput(Object input, ConnectApi.BinaryInput binary)

Use this constructor to pass multiple binary inputs:

ConnectApi.BatchInput(Object input, List<ConnectApi.BinaryInput> binaries)

The constructors takes these parameters:

| Argument | Type | Description | Available Version |
| --- | --- | --- | --- |
| input | Object | An individual input object to be used in the batch operation. For example, for postFeedElementBatch(), this should be ConnectApi.FeedElementInput. | 32.0 |
| binary | [ConnectApi.BinaryInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_binary.htm "Create a ConnectApi.BinaryInput object to attach files to feed items and comments, to add repository files, to create managed content, and to replace managed content variants.") | A binary file to associate with the input object. | 32.0 |
| binaries | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.BinaryInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_binary.htm "Create a ConnectApi.BinaryInput object to attach files to feed items and comments, to add repository files, to create managed content, and to replace managed content variants.")\> | A list of binary files to associate with the input object. | 32.0 |

#### See Also

- [Post a Batch of Feed Elements](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_post_feed_element_batch.htm "Post a Batch of Feed Elements - HTML (New Window)")
- [Post a Batch of Feed Elements with a New (Binary) File](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_post_feed_element_batch_binary.htm "Post a Batch of Feed Elements with a New (Binary) File - HTML (New Window)")