Batch call method.

It is not uncommon for an application to send requests in series. To optimize the process, use this function to batch call REST methods instead of sending requests one by one.


Parameter Description
halt Determines if the sequence of requests to be aborted in case of an error.
cmd Specifies a standard array of requests. Notice that the request data must be quoted; therefore, the request data inside a request must be quoted again.

Note: Number of batch calls is limited to 50.

The request array can be a simple indexed array or an associative array. The return value of a preceding request may be used in each subsequent request by addressing it in a result array:


where the request ID is the request key in the request array.


XML response:

					<NAME>IT Department</NAME>

See Also

© «Bitrix24», 2001-2022