Skip to content

Network

Workspaces (networks): creation, licensing, invites, copying, and marketplace products.

Endpoints

EndpointArgumentsReturns
v2.network.copyWorkspaceId, unknownHailerResult
v2.network.createunknownHailerResult
v2.network.fastFunctions.setWorkspaceId, unknownboolean
v2.network.getObjectIdobject
v2.network.invite.editunknown, Update object containing at least one key to be updated.boolean
v2.network.invite.listObjectIdany[]
v2.network.invite.removeunknownboolean
v2.network.invite.resendunknown, ObjectIdboolean
v2.network.invite.sendoptionsunknown
v2.network.license.get-object
v2.network.product.createoptionsunknown
v2.network.product.getObjectIdunknown
v2.network.product.getManifestObjectIdunknown
v2.network.product.installObjectId, WorkspaceIdboolean
v2.network.product.isProductInstalledObjectId, WorkspaceIdboolean
v2.network.product.publishTemplateoptionsunknown
v2.network.publicCopyoptionsHailerResult
v2.network.restrictions-unknown
v2.network.updateWorkspaceId, optionsboolean
v2.network.workflowTemplateWorkspaceIdunknown

v2.network.copy

Description

Creates a copy of the selected workspace. Will only work if you are the network owner and it is not restricted. All created fields and processes will have new Ids assigned to them.

Parameters

Argument 1 (WorkspaceId, required): workspaceId (former networkId)

Argument 2 (string, required):

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('v2.network.copy', [
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
  'string', // argument 2 (required)
]);
console.log(result);

Returns

HailerResult

Auth: requires an authenticated session.

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

v2.network.create

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (string, optional):

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('v2.network.create', [
  'string', // argument 1
]);
console.log(result);

Returns

HailerResult

Auth: requires an authenticated session.

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

v2.network.fastFunctions.set

Description

Enable or disable the Fast Functions evaluator for a workspace.

Only workspace admins and owners can change this setting.

Parameters

Argument 1 (WorkspaceId, required): Workspace ID

Argument 2 (boolean, required): Enable Fast Functions

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('v2.network.fastFunctions.set', [
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
  false, // Enable Fast Functions (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

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

v2.network.get

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Network 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('v2.network.get', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

FieldTypeRequiredDescription
_idObjectIdno
namestringyes
uidstringyes
createdtimestampyesTime (milliseconds since 1970-01-01 UTC)
updatedtimestampnoTime (milliseconds since 1970-01-01 UTC)
membersobject[]yes
settingsobjectno
licenseobjectno
marketplaceobjectno
propertyFieldsobjectno

Auth: requires an authenticated session.

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

v2.network.invite.edit

Description

Edit invitations

Only teams, title and notes can be updated.

Passing nullto either title or notes results in delete operation for that field.

Parameters

Argument 1 (string, required): Invitation key

Argument 2 (Update object containing at least one key to be updated., required):

FieldTypeRequiredDescription
notesstringnoNote, set to null to clear
titlestringnoTitle, set to null to clear
roleuser | admin | owner | guest | inviternoOne of: user, admin, owner, guest, inviter.
teamsanynoStringified object id's
customRoleroleIdnoValid role id
discussionIdsObjectId[]no

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('v2.network.invite.edit', [
  'string', // Invitation key (required)
  {
    notes: 'string', // Note, set to null to clear
    title: 'string', // Title, set to null to clear
  },
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

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

v2.network.invite.list

Description

List invites in this network

Parameters

Argument 1 (ObjectId, required): Network 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('v2.network.invite.list', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

Array of any.

Auth: requires an authenticated session.

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

v2.network.invite.remove

Description

Remove invitation

Parameters

Argument 1 (string, required): Invitation key

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('v2.network.invite.remove', [
  'string', // Invitation key (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

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

v2.network.invite.resend

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (string, required):

Argument 2 (ObjectId, optional):

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('v2.network.invite.resend', [
  'string', // argument 1 (required)
  'string', // ObjectId
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

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

v2.network.invite.send

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, required):

FieldTypeRequiredDescription
namestringno
titlestringno
notesstringno
emailstringyes
brandIdObjectIdno
roleuser | admin | owner | guest | inviternoOne of: user, admin, owner, guest, inviter.
teamsanyno
customRoleroleIdnoValid role id
discussionIdsObjectId[]no
cidWorkspaceIdnoWorkspace id, defaults to current workspace

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('v2.network.invite.send', [
  {
    email: 'string',
  },
]);
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? }.

v2.network.license.get

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Undocumented

This endpoint declares no argument schema in the source yet.

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('v2.network.license.get', []);
console.log(result);

Returns

FieldTypeRequiredDescription
typefree | legacy | enterprise | premium | free-trialnoOne of: free, legacy, enterprise, premium, free-trial.
activatedtimestampnoTime (milliseconds since 1970-01-01 UTC)
functionFieldsbooleanno
usersnumberno
calendarsnumberno
modulesnumberno
activitiesnumberno
indexedDatabooleanno
processesnumberno
datasetsnumberno
overrideobjectno
paymentobjectno
canceledobjectno
tokensobjectno

Auth: requires an authenticated session.

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

v2.network.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('v2.network.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? }.

v2.network.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('v2.network.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? }.

v2.network.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('v2.network.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? }.

v2.network.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('v2.network.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? }.

v2.network.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 to check installation in

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('v2.network.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? }.

v2.network.product.publishTemplate

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, optional):

FieldTypeRequiredDescription
workspaceIdWorkspaceIdnoWorkspace Id
targetIdObjectIdnotarget Id
versionstringyessemver format (e.g., 1.0.0)
versionDescriptionstringyesDescription for template
titlestringyesTitle for the template
descriptionstringyesDescription for template

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('v2.network.product.publishTemplate', [
  {
    version: 'string', // semver format (e.g., 1.0.0)
    versionDescription: 'string', // Description for template
    title: 'string', // Title for the template
    description: 'string', // Description for template
  },
]);
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? }.

v2.network.publicCopy

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, required):

FieldTypeRequiredDescription
copyNetworkIdWorkspaceIdyesworkspaceId (former networkId)

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('v2.network.publicCopy', [
  {
    copyNetworkId: '507f1f77bcf86cd799439011', // workspaceId (former networkId)
  },
]);
console.log(result);

Returns

HailerResult

Auth: requires an authenticated session.

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

v2.network.restrictions

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Undocumented

This endpoint declares no argument schema in the source yet.

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('v2.network.restrictions', []);
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? }.

v2.network.update

Description

Updates some workspace settings, such as badge color, default view and enabling/disabling copying for non-owner users. Will not work if you are not the owner or an admin.

Parameters

Argument 1 (WorkspaceId, optional): Network ID

Argument 2 (object, optional):

FieldTypeRequiredDescription
namestringno
isolatedTeamsbooleanno
colorstringno
defaultViewactivities | discussions | events | feednoOne of: activities, discussions, events, feed.
allowPublicCopybooleanno
functionFieldVersionnumberno
languagesfi | en | sv[]no
localauthbooleanno
disableVideoCallsbooleanno

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('v2.network.update', [
  '507f1f77bcf86cd799439011', // WorkspaceId
  {
    name: 'string',
    isolatedTeams: false,
  },
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

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

v2.network.workflowTemplate

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (WorkspaceId, required): workspaceId (former networkId)

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('v2.network.workflowTemplate', [
  '507f1f77bcf86cd799439011', // WorkspaceId (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? }.

Hailer Developer Documentation