Comparing features that execute multiple requests
| Composite requests | Request inclusion | Batch requests | |
|---|---|---|---|
|
Architecture of the call |
Sibling subrequests (with no parent request) | A parent request with one or more child requests | Sibling subrequests (with no parent request) |
| The endpoint to call | The Composite API's /composite endpoint |
The endpoint that creates or modifies the parent object (though not all endpoints support request inclusion) | The relevant API's /batch endpoint |
| Behavior when one subrequest that attempts to commit data fails | The entire request fails | The entire request fails | Other subrequests may still be attempted |
| Passing information between subrequests | Through the use of variables | Through the use of refids | Not supported |
| Allows GET subrequests? | Yes | No | Yes |
| Allows DELETE subrequests? | Yes | No | Yes |
Allows business action POST subrequests (such as
/assign)? |
Yes | No | Yes |
| Allows the creation or modification of two unrelated objects? | Yes | No | Yes |