Composite Request Body
Composite Collection Input
The request body contains an allOrNone flag that specifies how to roll back errors and a compositeRequest collection that includes subrequests to execute.
Properties
| Name | Type | Description | Required or Optional |
|---|---|---|---|
| allOrNone | Boolean |
Specifies what to do when an error occurs while processing a subrequest. If the value is true, the entire composite request is rolled back. If the value is false, the remaining subrequests that don’t depend on the failed subrequest are executed. Dependent subrequests aren’t executed. In either case, the top-level request returns HTTP 200 and includes responses for each subrequest. |
Optional |
| compositeRequest | Composite Subrequest[] | Collection of subrequests to execute. | Required |
JSON Example
1{
2 "allOrNone" : true,
3 "compositeRequest" : [{
4 Composite Subrequest
5 },{
6 Composite Subrequest
7 },{
8 Composite Subrequest
9 }]
10}Composite Subrequest
Contains the resource, method, headers, body, and reference ID for the subrequest.
Properties
Usage
Because referenceId is case sensitive, make sure that the case of the field that you’re referring to is correct. The same field can use different cases in different contexts.