UI.AddCommand represents a request from an application to add a command to the application's menu or sub-menu. This RPC can be sent to the HMI for an application that is registered and in any state (FULL, BACKGROUND, etc.)
menuParamsmenuParams contains a parentID the command is part of a sub menu. SDL adds SubMenu Commands to the top level Menu via UI.AddSubMenu| Name | Type | Mandatory | Additional | 
|---|---|---|---|
| cmdID | Integer | true | minvalue: 0 maxvalue: 2000000000  | 
| menuParams | Common.MenuParams | false | |
| cmdIcon | Common.Image | false | |
| appID | Integer | true | 
This RPC has no additional parameter requirements
{ "id" : 215, "jsonrpc" : "2.0", "method" : "UI.AddCommand", "params" : { "cmdID" : 2318, "menuParams" : { "parentID" : 6, "position" : 0, "menuName" : "Show weather for tomorrow" }, "cmdIcon" : { "value" : "tmp/SDL/app/Gis_meteo/1245_28.jpeg", "imageType" : "DYNAMIC" }, "appID" : 65409 } }
{ "id" : 215, "jsonrpc" : "2.0", "result" : { "code" : 0, "method" : "UI.AddCommand" } }
{ "id" : 215, "jsonrpc" : "2.0", "error" : { "code" : 13, "message" : "There’s no app with received appID registered", "data" : { "method" : "UI.AddCommand" } } }