Composite Batch
POST {{_endpoint}}/services/data/v{{version}}/composite/batch
Executes up to 25 subrequests in a single request. The response bodies and HTTP statuses of the subrequests in the batch are returned in a single response body. Each subrequest counts against rate limits.
The requests in a batch are called subrequests. All subrequests are executed in the context of the same user. Subrequests are independent, and you can’t pass information between them. Subrequests execute serially in their order in the request body. When a subrequest executes successfully, it commits its data. Commits are reflected in the output of later subrequests. If a subrequest fails, commits made by previous subrequests are not rolled back. If a batch request doesn’t complete within 10 minutes, the batch times out and the remaining subrequests aren’t executed.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string |
RESPONSES
status OK
{
"hasErrors": false,
"results": [
{
"statusCode": 200,
"result": {
"totalSize": 2,
"done": true,
"records": [
{
"attributes": {
"type": "Account",
"url": "/services/data/v58.0/sobjects/Account/001..."
},
"Id": "001...",
"Name": "Sample Account"
},
...
]
}
},
{
"statusCode": 200,
"result": {
"totalSize": 2,
"done": true,
"records": [
{
"attributes": {
"type": "Opportunity",
"url": "/services/data/v58.0/sobjects/Opportunity/006..."
},
"Id": "006...",
"Name": "Edge Emergency Generator"
},
...
]
}
}
]
} |
ENDPOINTS