Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:core:batch [13/02/2013 06:24] alek |
en:sidebar:remoteapi:apiref:core:batch [29/11/2013 13:31] (current) |
} | } |
] | ] |
| </code> |
| |
| This command also can be called by following request: |
| <code javascript> |
| svc=core/batch¶ms={ |
| "params": [{ |
| "svc":<text>, |
| "params":{} |
| }], |
| "flags":<uint>} |
</code> | </code> |
| |
| svc | command name | | | svc | command name | |
| params | parameters | | | params | parameters | |
| | flags | 0 - execute all commands (by default), 1 - stop batch in case of returning error by some command | |
| |
===== Response ===== | ===== Response ===== |
<code javascript> | <code javascript> |
[ | [ |
{ | { /* object with data if there are no errors */ |
<object> /* if there are no errors */ | ... |
}, | }, |
{ | { /* error code if an error has occurred */ |
"error":<int> /* error code if an error has occurred */ | "error":<int> |
}, | }, |
... | ... |
] | ] |
</code> | </code> |
| |
| :!: 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. |