API-based hooks

The function call running the Hook is:

/*
 @param {OpenAPIClientAxios} api - API client to call Nedap Harmony APIs
 @param {string} workspaceId - identifier of the current workspace, used in the APIs
 @param {object} body - body of the API call that started this hook
 @param {object} variables - object with workspace variables, containing for example security tokens
 */

module.exports = async ({api, workspaceId, body, variables}) => {
  ...
  
  console.log('Script execution done.')
}

❗️

Time-out

An API-based hook has a time-out of only one minute before it is automatically stopped.


Did this page help you?