Table of Contents

Command parameters

To update command parameters, use the command unit/update_command_alias:

svc=unit/update_command_alias&params={"itemId":<long>,
				      "id":<long>,
				      "callMode":<text>,
				      "n":<text>,
				      "c":<text>,
				      "l":<text>,
				      "p":<text>}

Parameters

Name Description
itemId unit ID
id command ID
callMode action: create, update, delete
Parameters required only for create and update:
n command name
c type (see below)
l link type (see below)
p parameters

Command types:

Link types:

Response

On create and edit:

[
	<long>,		/* command ID */
	{
		"nm":<text>,	/* command name */
		"cn":<text>,	/* command type */
		"lt":<text>,	/* link type */
		"cp":<text>	/* parameters */
	}
]

On delete:

[
	<long>,		/* command ID */
	null
]