Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:sidebar:remoteapi:apiref:core:batch [18/02/2013 09:03]
zuve
en:sidebar:remoteapi:apiref:core:batch [09/07/2013 12:25]
zuve
Line 9: Line 9:
  }  }
        ]        ]
 +</​code>​
 +
 +This command also can be called by following request:
 +<code javascript>​
 +svc=core/​batch&​params={
 + "​params":​ [{
 + "​svc":<​text>,​
 + "​params":​{}
 + }],
 + "​flags":<​uint>​}
 </​code>​ </​code>​
  
Line 17: Line 27:
 | 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>​
 [ [
- { /* if there are no errors ​returns object with data */+ { /* object with data if there are no errors */
  ...  ...
  },  },
Line 30: Line 41:
 ] ]
 </​code>​ </​code>​
 +
 +:!: If in parameter **flags** was set value **"​1"​** and one of commands was executed with error, then all following commands will return error with code 10.
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam