src/api/AsteriskAPI.js
/**
   * PUT /asterisk/modules/{moduleName}
   *
   * Reload an Asterisk module.
   *
   * *API available since Asterisk 13.5*
   *
   * @param {object} params
   * @param {string} params.moduleName Case-sensitive module name.
   * @returns {Promise} Resolves if the module was successfully reloaded.
   *  Rejects if the module could not be found in the loaded modules (status 404)
   *  or the module information could not be reloaded for some reason (status 409).
   */
PUT /asterisk/modules/{moduleName}
Reload an Asterisk module.

*API available since Asterisk 13.5

@param {object} params
@param {string} params.moduleName Case-sensitive module name.
@returns {Promise} Resolves if the module was successfully reloaded.
Rejects if the module could not be found in the loaded modules (status 404)
or the module information could not be reloaded for some reason (status 409).
PUT / asterisk / modules / { moduleName } Reload an Asterisk module . * API available since Asterisk 13 . 5 @param { object } params @param { string } params . moduleName Case - sensitive module name . @returns { Promise } Resolves if the module was successfully reloaded . Rejects if the module could not be found in the loaded modules ( status 404 ) or the module information could not be reloaded for some reason ( status 409 ) .
reloadModule(params = {}) {
    const { moduleName } = params;
    const name = encodeURIComponent(moduleName);
    return this._request({
      method: "PUT",
      url: `${this._baseUrl}/asterisk/modules/${name}`,
    });
  }
reloadModule ( params = { } ) { const { moduleName } = params ; const name = encodeURIComponent ( moduleName ) ; return this . _request ( { method : "PUT" , url : ` ${ this . _baseUrl } ${ name } ` , } ) ; }
PUT /asterisk/modules/{moduleName}
 Reload an Asterisk module.
PUT / asterisk / modules / { moduleName } Reload an Asterisk module .