batch

The batch function is used to execute several commands in one request.

Copied!
svc=core/batch&params=[
			{
				"svc":"<text>",
				"params":{}
			}
		      ]

The request can also be as follows:

Copied!
svc=core/batch&params={
			"params": [{
				"svc":"<text>",
				"params":{}
			}],
			"flags":<uint>}

Parameters

NameDescription

svc

Command name.

params

Parameters.

flags

One of the following:

  • execute all commands (by default);
  • stop batch if an error is returned by some command. 

Returned result

Copied!
[
	{	/* object with data if there are no errors */
		...
	},
	{	/* error code if an error has occurred */
		"error":<int>	
	},
	...
]

If the flags parameter is set to 1 and an error has occurred while executing one of the commands, all the commands that follow this one return the error code 10.

Possible error codes:

CodeDescription
6The returned result is too large. 
4Wrong input parameters.
Download PDF file
Download Word document

See also