The resorces responsible for creating and managing organisations
-
netField.organisation.get(organisationId, depth, [callback])
-
netField.organisation.update(organisationId, params, [callback])
-
netField.organisation.create(organisationId, params, [callback])
-
netField.organisation.getAll(page, limit, sortBy, sortOrder, type [callback])
Get organisation by organisationId
/**
* @param {number} organisationId
* @param {number} depth
* @param {function} callback optional
*/
netField.organisation.get(organisationId, depth, [callback])
Update organisation by organisationId
/**
* @param {number} organisationId
* @param {object} params
* @param {function} callback optional
*/
netField.organisation.update(organisationId, params, [callback])
Create Organisation
/**
* @param {number} parentOrganisationId
* @param {object} params
* @param {function} callback optional
*/
netField.organisation.create(parentOrganisationId, params, [callback])
Delete organisation by organisationId
/**
* @param {number} organisationId
* @param {function} callback optional
*/
netField.organisation.delete(organisationId, [callback])
Get available organisations
/**
* @param {number} page (optional)
* @param {number} limit (optional)
* @param {string} sortBy (optional)
* @param {string} sortOrder asc, desc (optional)
* @param {string} type tenants, organisations (optional)
* @param {function} callback (optional)
*/
netField.organisation.getAll(page, limit, sortBy, sortOrder, type, [callback])