batch
The batch function is used to execute several commands in one request.
svc=core/batch¶ms=[
{
"svc":"<text>",
"params":{}
}
]
The request can also be as follows:
svc=core/batch¶ms={
"params": [{
"svc":"<text>",
"params":{}
}],
"flags":<uint>}
Parameters
Name | Description |
---|---|
svc | Command name. |
params | Parameters. |
flags | One of the following:
|
Returned result
[
{ /* 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:
Code | Description |
---|---|
6 | The returned result is too large. |
4 | Wrong input parameters. |