---
schema_version: "1"
id: 28218d70237e04a04effcca16d3a7b16c52047a02763fe3cac7941dfc353fd67
title: Batch Operation Input
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_requests_batch_operation_input.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_batch_operation_input.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f3e0f48a1d661853c6318c603fe811b8a404a6882c411ec4fcf6bf3240aac7f7
description: Represents the operation type and record data to create, update, and delete in a batch.
---
# Batch Operation Input

Represents the operation type and record data to create, update, and delete in a batch.

JSON example

"operations": \[
    {
      "type": "CREATE",
      "records": \[
        {
          "apiName": "Account",
          "fields": {
            "Name": "Global Media"
          }
        },
        {
          "apiName": "Contact",
          "fields": {
            "LastName": "Smith"
          }
        }
      \]
    },
    {
      "type": "UPDATE",
      "records": \[
        {
          "fields": {
            "Id": "001xx000003Gaf9AAC",
            "NumberOfEmployees": 1000
          }
        }
      \]
    },
    {
      "type": "DELETE",
      "records": \[
        {
          "fields": {
            "Id": "001xx000003GanDAAS"
          }
        }
      \]
    }
  \]

Properties

<table class="featureTable sort_table" summary="">





              <thead class="thead sorted" align="left">
                <tr>
                  <th class="featureTableHeader vertical-align-top " id="d21104e71">Name</th>

                  <th class="featureTableHeader vertical-align-top " id="d21104e74">Type</th>

                  <th class="featureTableHeader vertical-align-top " id="d21104e77">Description</th>

                  <th class="featureTableHeader vertical-align-top " id="d21104e80">Required or Optional</th>

                  <th class="featureTableHeader vertical-align-top " id="d21104e83">Available Version</th>

                </tr>

              </thead>

              <tbody class="tbody">
                <tr>
                  <td class="entry" headers="d21104e71" data-title="Name"><samp class="codeph nolang">type</samp></td>

                  <td class="entry" headers="d21104e74" data-title="Type">String</td>

                  <td class="entry" headers="d21104e77" data-title="Description">The type of record operation. Valid values include:<ul class="ul bulletList">
                      <li class="li">
                        <samp class="codeph nolang">CREATE</samp>—<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_post.htm" title="Create multiple records. You can create, update, and delete up to 200 records in a single request.">Create a record or multiple records</a>.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">UPDATE</samp>—<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_update.htm" title="Update multiple records. You can create, update, and delete up to 200 records in a single request.">Update a record or multiple records</a>.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">DELETE</samp>—<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_batch_delete.htm" title="Delete multiple records. You can create, update, and delete up to 200 records in a single request.">Delete a record or multiple records</a>.
                      </li>

                    </ul>
                  </td>

                  <td class="entry" headers="d21104e80" data-title="Required or Optional">Required</td>

                  <td class="entry" headers="d21104e83" data-title="Available Version">59.0</td>

                </tr>

                <tr>
                  <td class="entry" headers="d21104e71" data-title="Name"><samp class="codeph nolang">records</samp></td>

                  <td class="entry" headers="d21104e74" data-title="Type">
                    <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_record_input.htm" title="A description of a record to use in a request to create or update a record or in a request to check for duplicate records.">Record
                      Input</a> []
                  </td>

                  <td class="entry" headers="d21104e77" data-title="Description">A description of a record or multiple records to create, update, and
                    delete.</td>

                  <td class="entry" headers="d21104e80" data-title="Required or Optional">Required</td>

                  <td class="entry" headers="d21104e83" data-title="Available Version">59.0</td>

                </tr>

              </tbody>

            </table>