Upload Job Data
- URI
- /services/data/vXX.X/jobs/ingest/jobID/batches
- Availability
- This resource is available in API version 41.0 and later.
- Formats
- text/csv
- HTTP Method
- PUT
- Authentication
- Authorization: Bearer token
- Parameters
- None.
- Request Body
- CSV file with record data.
- Response Body
- None. Returns a status code of 201 (Created), which indicates that the job data was successfully received by Salesforce.
- Usage Notes
-
The resource URL is provided in the contentUrl field in the response from Create a Job, or the response from a Job Info request on an open job.
A request can provide CSV data that does not in total exceed 150 MB of base64 encoded content. When job data is uploaded, it is converted to base64. This conversion can increase the data size by approximately 50%. To account for the base64 conversion increase, upload data that does not exceed 100 MB.
Don’t delete your local CSV data until you’ve confirmed that all records were successfully processed by Salesforce. If a job fails, use the successful results, failed results, and unprocessed records resources to determine what records from your CSV data you need to resubmit.