Liquit.Applications.Update
  • 21 Mar 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Liquit.Applications.Update

  • Dark
    Light
  • PDF

Article Summary

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:

NameDescriptionValueRequired
typeThis can be either path or url.<string>Yes
nameThe name of the personal package.<string>Yes
urlThe URL that the personal package should open.<string>Personal URI only
pathThe path to the executable that should be opened by the Agent.<string>Local path only
iconThe file object used for the icon.<file>No
directoryThe start directory the application will use when launched.<string>Local path only
displayDefines 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
browserThe 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.liquit.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);
});

Was this article helpful?