---
schema_version: "1"
id: 29c63636a0cdb7a728cfebbe6293eedb84b8e02c225667c0ced255db54d32f19
title: Composite Response Body
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_responses_composite_composite.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_responses_composite_composite.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 63553ea526435fda5f8ae333c2f13e4eaaf54dc81cdb4cfaf77594d1619f8c0c
description: Describes the result of a /composite request.
---
# Composite Response Body

Describes the result of a /composite request.

## Composite Results

### compositeResponse

- **Type**: [Composite Subrequest Result](#subrequest_result)\[\]
- **Description**: Collection of subrequest results

### JSON Example

{
   "compositeResponse" : \[{
      Composite Subrequest Result
      },{
      Composite Subrequest Result
      },{
      Composite Subrequest Result
   }\]
}

## Composite Subrequest Result

### body

- **Type**: The type depends on the response type of the subrequest.
- **Description**: The response body of this subrequest. If the subrequest returns an error, the body includes the error code and message.

### httpHeaders

- **Type**: Map<String, String>
- **Description**: Response headers and their values for this subrequest. The /composite resource doesn’t support the Content-Length header, so subrequest responses don’t include this header and neither does the top-level response.

### httpStatusCode

- **Type**: Integer
- **Description**: An HTTP status code for this subrequest. If allOrNone is set to true in the composite request and a subrequest returns an error, all other subrequests return the 400 HTTP status code.

### referenceID

- **Type**: String
- **Description**: The reference ID specified in the subrequest. Use this property to associate subrequests with their results.

### JSON Example

{
   "body" : {
      "id" : "001R00000033I6AIAU",
      "success" : true,
      "errors" : \[ \]
   },
   "httpHeaders" : {
      "Location" : "/services/data/v40.0/tooling/sobjects/apexclassmember/001R00000033I6AIAU"
   },
   "httpStatusCode" : 201,
   "referenceId" : "apexclassmember\_reference\_id"
}