---
schema_version: "1"
id: 5bb2bcc3f13d9480c79b383e1fd937dbb86c1745d79ff14ed43b4ea5e9baa4f1
title: Batch Record Input
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_requests_batch_input.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_input.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a4a97e0a422757eb797d99a74474832c39ec1c9d74add86e1b03da7f11e571a1
description: A description of multiple operations for a request to create, update, or delete a batch of records.
---
# Batch Record Input

A description of multiple operations for a request to create, update, or delete a batch of records.

Example

POST /ui-api/records/batch

{
  "allOrNone": false,
  "operations": \[
    {
      "type": "CREATE",
      "records": \[
        {
          "apiName": "Account",
          "fields": {
            "Name": "ACCOUNT 1"
          }
        },
        {
          "apiName": "Contact",
          "fields": {
            "LastName": "Smith"
          }
        }
      \]
    },
    {
      "type": "Update",
      "records": \[
        {
          "fields": {
            "Id": "001xx000003Gaf9AAC",
            "NumberOfEmployees": 1000
          }
        }
      \]
    },
    {
      "type": "Delete",
      "records": \[
        {
          "fields": {
            "Id": "001xx000003GanDAAS"
          }
        }
      \]
    }
  \]
}

Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| allOrNone | Boolean | Specifies whether to stop processing the request and rollback any changes when the request encounters an error. The default is true. | Optional | 59.0 |
| operations | [Batch Operation Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_operation_input.htm "Represents the operation type and record data to create, update, and delete in a batch.") \[\] | A description of records and operation types. | Required | 59.0 |