Several commands can be executed at one request. For this, use core/batch:
svc=core/batch¶ms=[ { "svc":<text>, "params":{} } ]
This command also can be called by following request:
svc=core/batch¶ms={ "params": [{ "svc":<text>, "params":{} }], "flags":<uint>}
You can find an example of this request in the sample Executing several commands at once.
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 |
[ { /* 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 occured while executing one of the commands, then all consequent commands will return error 10.
|