POST api.ashx/v2/batch.{json|xml}
Will execute a series a rest requests in batch with a maximum of 100.
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
_REQUEST_X_DATA | string | Request Body | Url encoded data for the request in the sequence. X is a zero-based index in the sequence | Optional | ||
_REQUEST_X_METHOD | string | Request Body | The HttpMethod of the request in a specified sequence('GET','POST','DELETE','PUT'). X is a zero-based index in the sequence | Required | ||
_REQUEST_X_URL | string | Request Body | The url preceded by '~' for a request. X is a zero-based index in the sequence | Required | ||
Sequential | string | Request Body | Tells the batch to execute each request simulataneously. If 1 fails the rest will not be executed. | Optional | False |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/batch.json', data: { '_REQUEST_X_METHOD': '_request_x_method', '_REQUEST_X_URL': '_request_x_url' } }).then(function(response) { // use response });