---
schema_version: "1"
id: 1070757208094f9dfa9ee207ce848e37082681e90002b800b7999032d7759efe
title: Batch Response Body
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/responses-composite-batch.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/responses-composite-batch.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 808e934cc5318aad801854371b91d4981615c2b76cc51dfdea6a74957873fa4b
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# Batch Response Body

Describes the result of a Composite Batch request.

## Batch Results

**Properties**

|Name|Type|Description|
|----|----|-----------|
|`hasErrors`|Boolean|`true` if at least one of the results in the result set is an HTTP status code in the 400 or 500 range; `false` otherwise.|
|`results`|[Subrequest Result](#subrequest-result)[]|Collection of subrequest results.|

**JSON example**

```nolang
{
   "hasErrors" : false,
   "results" : [{
      "statusCode" : 204,
      "result" : null
      },{
      "statusCode" : 200,
      "result": {
         "attributes" : {
            "type" : "Account",
            "url" : "/services/data/v68.0/sobjects/Account/001D000000K0fXOIAZ"
         },
         "Name" : "NewName",
         "BillingPostalCode" : "94105",
         "Id" : "001D000000K0fXOIAZ"
      }
   }]
}
```

## Subrequest Result

**Properties**

|Name|Type|Description|
|----|----|-----------|
|`result`|The type depends on the response type of the subrequest. If the result is an error, the type is a collection containing the error message and error code.|The response body of this subrequest.|
|`statusCode`|Integer|An HTTP status code indicating the status of this subrequest.|

**JSON example**

```nolang
{
   "attributes" : {
      "type" : "Account",
      "url" : "/services/data/v68.0/sobjects/Account/001D000000K0fXOIAZ"
   },
   "Name" : "NewName",
   "BillingPostalCode" : "94015",
   "Id" : "001D000000K0fXOIAZ"
}
```

