restartDevice(mac, reboot_type = 'soft') {
    const payload = {cmd: 'restart',
      mac: mac.toLowerCase(),
      reboot_type: reboot_type.toLowerCase()
    };

    return this._request('/api/s/<SITE>/cmd/devmgr', payload);
  }
/**
   * Reboot a device - restart_device()
   *
   * return true on success
   * required parameter <mac>  = device MAC address
   * optional parameter <reboot_type> = string; two options: 'soft' or 'hard', defaults to soft
   *                                    soft can be used for all devices, requests a plain restart of that   device
   *                                    hard is special for PoE switches and besides the restart also requ  ests a
   *                                    power cycle on all PoE capable ports. Keep in mind that a 'hard' r  eboot
   *                                    does *NOT* trigger a factory-reset.
   */
Reboot a device - restart_device()
return true on success
required parameter   = device MAC address
optional parameter  = string; two options: 'soft' or 'hard', defaults to soft
soft can be used for all devices, requests a plain restart of that   device
hard is special for PoE switches and besides the restart also requ  ests a
power cycle on all PoE capable ports. Keep in mind that a 'hard' r  eboot
does *NOT* trigger a factory-reset.
Reboot a device - restart_device () return true on success required parameter = device MAC address optional parameter = string ; two options : ' soft ' or ' hard ' defaults to soft soft can be used for all devices requests a plain restart of that device hard is special for PoE switches and besides the restart also requ ests a power cycle on all PoE capable ports . Keep in mind that a ' hard ' r eboot does * NOT * trigger a factory - reset .
restartDevice(mac, reboot_type = 'soft') {
    const payload = {cmd: 'restart',
      mac: mac.toLowerCase(),
      reboot_type: reboot_type.toLowerCase()
    };
    return this._request('/api/s/<SITE>/cmd/devmgr', payload);
  }
restartDevice ( mac , reboot_type = 'soft' ) { const payload = { cmd : 'restart' , mac : mac . toLowerCase ( ) , reboot_type : reboot_type . toLowerCase ( ) } ; return this . _request ( '/api/s/<SITE>/cmd/devmgr' , payload ) ; }
Reboot a device - restart_device()
 return true on success
 required parameter <mac>  = device MAC address
 optional parameter <reboot_type> = string; two options: 'soft' or 'hard', defaults to soft
                                    soft can be used for all devices, requests a plain restart of that   device
                                    hard is special for PoE switches and besides the restart also requ  ests a
                                    power cycle on all PoE capable ports.
Reboot a device - restart_device () return true on success required parameter <mac > = device MAC address optional parameter <reboot_type > = string ; two options : ' soft ' or ' hard ' defaults to soft soft can be used for all devices requests a plain restart of that device hard is special for PoE switches and besides the restart also requ ests a power cycle on all PoE capable ports .