Skip to content

App

Apps: list, get, create, update and manage app members.

Endpoints

EndpointArgumentsReturns
v3.app.config.updateappId: string, config: any, workspaceId?: stringboolean
v3.app.createapp: AppInputobject
v3.app.listworkspaceId?: stringobject[]
v3.app.member.addappId: string, permissionItem: string, workspaceId?: stringboolean
v3.app.member.removeappId: string, member: string, workspaceId?: stringboolean
v3.app.product.createinput: { name: string }unknown
v3.app.product.gettargetId: stringunknown
v3.app.product.getInstalledVersionproductId: stringobject
v3.app.product.getManifesttargetId: stringunknown
v3.app.product.installproductId: string, workspaceId: stringboolean
v3.app.product.isProductInstalledproductId: string, workspaceId: stringboolean
v3.app.removeappId: string, workspaceId?: stringunknown
v3.app.updateappId: string, update: Partial<AppDoc>, workspaceId?: stringunknown

v3.app.config.update

Description

Edit app configuration

Parameters

Argument 1 (ObjectId, required): appId

Argument 2 (object, required):

FieldTypeRequiredDescription
fieldsRecord<string, object>no

Argument 3 (WorkspaceId, optional): Workspace Id of the app. Required for workspace apps, omit for personal apps

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.config.update', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  {
    fields: {
      '507f1f77bcf86cd799439012': { /* ... */ }, // fieldId: value
    },
  },
  '507f1f77bcf86cd799439011', // WorkspaceId
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.create

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, optional):

FieldTypeRequiredDescription
cidWorkspaceIdnoworkspaceId (former networkId)
namestringyes
descriptionstringno
gitUrlstringnoOptional git repository URL of the app source code
urlstringno
imagefileIdnoDEPRECATED: use iconGenerator. Kept for older app-sdk compatibility.
iconGeneratorobjectno
configobjectno

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.create', [
  {
    name: 'string',
  },
]);
console.log(result);

Returns

FieldTypeRequiredDescription
_idObjectIdyesappId
createdtimestampyesTime (milliseconds since 1970-01-01 UTC)
updatedtimestampyesTime (milliseconds since 1970-01-01 UTC)
cidWorkspaceIdnoWorkspace Id, leave empty for Personal apps
uidstringyes
namestringyes
descriptionstringyes
gitUrlstringnoOptional git repository URL of the app source code
allowedUrlsstring[]no
membersobject[]yes
urlstringyes
imagefileIdnofileId
iconfileIdnofileId
iconBadgefileIdnofileId
iconGeneratorobjectno
configobjectno
packageHashObjectIdno
isProductVersionAvailablebooleanno

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.list

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (WorkspaceId, optional): Workspace Id to list apps for. Omit to list only personal apps

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.list', [
  '507f1f77bcf86cd799439011', // WorkspaceId
]);
console.log(result);

Returns

Array of objects:

FieldTypeRequiredDescription
_idObjectIdyesappId
createdtimestampyesTime (milliseconds since 1970-01-01 UTC)
updatedtimestampyesTime (milliseconds since 1970-01-01 UTC)
cidWorkspaceIdnoWorkspace Id, leave empty for Personal apps
uidstringyes
namestringyes
descriptionstringyes
gitUrlstringnoOptional git repository URL of the app source code
allowedUrlsstring[]no
membersobject[]yes
urlstringyes
imagefileIdnofileId
iconfileIdnofileId
iconBadgefileIdnofileId
iconGeneratorobjectno
configobjectno
packageHashObjectIdno
isProductVersionAvailablebooleanno

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.member.add

Description

Add member

Parameters

Argument 1 (ObjectId, required): appId

Argument 2 (string, required): network_<networkId>, team_<teamId>, user_<userId>, group_<groupId>

Argument 3 (WorkspaceId, optional): Workspace Id of the app. Required for workspace apps, omit for personal apps

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.member.add', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  'string', // `network_<networkId>`, `team_<teamId>`, `user_<userId>`, `group_<groupId>` (required)
  '507f1f77bcf86cd799439011', // WorkspaceId
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.member.remove

Description

Remove member

Parameters

Argument 1 (ObjectId, required): appId

Argument 2 (string, required): network_<networkId>, team_<teamId>, user_<userId>, group_<groupId>

Argument 3 (WorkspaceId, optional): Workspace Id of the app. Required for workspace apps, omit for personal apps

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.member.remove', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  'string', // `network_<networkId>`, `team_<teamId>`, `user_<userId>`, `group_<groupId>` (required)
  '507f1f77bcf86cd799439011', // WorkspaceId
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.product.create

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, optional):

FieldTypeRequiredDescription
namestringyesName of the version

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.product.create', [
  {
    name: 'string', // Name of the version
  },
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.product.get

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Target Id in Hailer market

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.product.get', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.product.getInstalledVersion

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Product Id in Hailer market

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.product.getInstalledVersion', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

FieldTypeRequiredDescription
versionstringno
descriptionstringnosemver format (e.g., 1.0.0)
packageHashObjectIdnoDescription about the version
createdtimestampnoTime (milliseconds since 1970-01-01 UTC)

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.product.getManifest

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Target Id in Hailer market

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.product.getManifest', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.product.install

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Product Id in Hailer market

Argument 2 (WorkspaceId, required): Workspace Id where it will be installed

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.product.install', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.product.isProductInstalled

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Product Id in Hailer market

Argument 2 (WorkspaceId, required): Workspace Id

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.product.isProductInstalled', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.remove

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): appId

Argument 2 (WorkspaceId, optional): Workspace Id of the app. Required for workspace apps, omit for personal apps

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.remove', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  '507f1f77bcf86cd799439011', // WorkspaceId
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

v3.app.update

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): appId

Argument 2 (object, required):

FieldTypeRequiredDescription
cidWorkspaceIdnoworkspaceId (former networkId)
namestringyes
descriptionstringno
gitUrlstringnoOptional git repository URL of the app source code
urlstringno
imagefileIdnoDEPRECATED: use iconGenerator. Kept for older app-sdk compatibility.
iconGeneratorobjectno
configobjectno

Argument 3 (WorkspaceId, optional): Workspace Id of the app. Required for workspace apps, omit for personal apps

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v3.app.update', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  {
    name: 'string',
  },
  '507f1f77bcf86cd799439011', // WorkspaceId
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, debug? }.

Hailer Developer Documentation