Executing several commands

Several commands can be executed at one request. For this, use core/batch:

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

This command also can be called by the following request:

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

:!: You can find an example of this request in the sample Executing several commands at once.

Parameters

Name Description
svc command name
params parameters
flags 0 – execute all commands (by default), 1 – stop batch in case of returning error by some command

Response

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

:!: If “flags” parameter has been set as “1” and an error has occurred while executing one of the commands, then all consequent commands will return error 10.