Liquit.Applications.Create
  • 12 Dec 2023
  • 1 Minute to read
  • Dark
    Light
  • PDF

Liquit.Applications.Create

  • Dark
    Light
  • PDF

Article Summary

The Liquit.Applications.Create function lets the end-user add a personal application of their own. This can be a local application or a URL the user wants to save to their workspace.
By default, the* Liquit Application Create* API will return the ID of the freshly created personal application. When the request fails, an error will be returned in the fault object of the response. This can be because an application with the same name already exists.

Request parameters

Based on the type, the following parameters 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 in 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.Create({
  type: type,
  name: name,
  url: path,
  icon: file
}, function (fault, result) {
  console.log(fault, result);
});

Was this article helpful?