This is an old revision of the document!


Executing several commands

Several commands can be executed at one request. For this, use core/batch:

svc=core/batch&params=[
			{
				"svc":<text>,
				"params":{}
			}
		      ]

This command also can be called by following request:

svc=core/batch&params={
			"params": [{
				"svc":<text>,
				"params":{}
			}],
			"flags":<uint>}

:!: You can find an example of this request in the sample Executing several commands at once.

Parameters

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

Response

[
	{	/* object with data if there are no errors */
		...
	},
	{	/* error code if an error has occurred */
		"error":<int>	
	},
	...
]

:!: 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