Executing several commands
Several commands can be executed at one request. For this, use core/batch:
svc=core/batch¶ms=[
{
"svc":<text>,
"params":{}
}
]
You can find an example of this request in the sample Executing several commands at once.
Parameters
Name | Description |
svc | command name |
params | parameters |
Response
[
{ /* object with data if there are no errors */
...
},
{ /* error code if an error has occurred */
"error":<int>
},
...
]
Errors
Code | Value |
1 | invalid session |
2 | invalid service name |
3 | invalid result |
4 | invalid format or value of parameters |