Liquit.Applications.Update

Prev Next

The Liquit.Applications.Update function updates a personal application.
By default, the Liquit.Application.Update API returns the ID of the freshly created personal application. When the request fails, an error is returned in the fault object of the response. This can can happen for example because an application with the same name already exists.

Request parameters

Based on the type of application, the following options are available:

Name Description Value Required
type This can be either path or url. <string> Yes
name The name of the personal package. <string> Yes
url The URL that the personal package should open. <string> Personal URI only
path The path to the executable that should be opened by the Agent. <string> Local path only
icon The file object used for the icon. <file> No
directory The start directory the application will use when launched. <string> Local path only
display Defines how the window for the application should be opened:
  • Normal: Open up the application according to the default settings.
  • Minimized: Start the application minimized.
  • Maximized: Start the application maximized.
<string> Local path only
browser The browser used to open the webpage:
  • Default
  • InternetExplorer
  • Firefox
  • Chrome
  • Opera
  • Edge
  • Safari
<string> Personal URI only

Example

var type = 'url';
var name = 'friendlyName';
var path = 'https://www.recastsoftware.com';
var icon = $('.icon')[0].files;

Liquit.Applications.Update('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' , {
  type: type,
  name: name,
  url: path,
  icon: file
}, function (fault, result) {
  console.log(fault, result);
});