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[] Collection of subrequest results. - JSON example
-
{ "hasErrors" : false, "results" : [{ "statusCode" : 204, "result" : null },{ "statusCode" : 200, "result": { "attributes" : { "type" : "Account", "url" : "/services/data/v64.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. The response body of this subrequest. statusCode Integer An HTTP status code indicating the status of this subrequest. - JSON example
-
{ "attributes" : { "type" : "Account", "url" : "/services/data/v64.0/sobjects/Account/001D000000K0fXOIAZ" }, "Name" : "NewName", "BillingPostalCode" : "94015", "Id" : "001D000000K0fXOIAZ" }