REST API SObject Tree Request and REST API Composite Request are two ways to insert multiple related records in one call or transaction. REST API SObject Tree Request allows you to create nested records that share a root record. REST API Composite Request allows you to execute a series of REST API requests in a single call. Bulk API 2.0 and Streaming API are not suitable for inserting multiple related records in one call or transaction. Bulk API 2.0 is used for loading large batches of data asynchronously, and Streaming API is used for receiving notifications of data changes in real time.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit