function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kai Wifi AmundsenKai Wifi Amundsen 

REST API Response Order

When using the REST API Batch call that lets you combine up to 25 REST API calls into a single call, are the results returned in the same order that they are specified in the request?

Most REST call (like update) do not return any identifying information to link them up to the request they came from. For example, if I use the batch feature to update 5 records, neither the ID, nor the original request URL, will be returned in the response which means if one fails I will get 4 "204 no content" responses and and error message with the only possible way of knowing which failed being the order they are listed in the response.