src/Jaspersoft/Service/LogCollectorService.php
public function updateLogCollector(LogCollectorSettings $collector)
    {
        if (!is_null($collector->id())) {
            $url = self::makeUrl($collector->id());
        } else {
            throw new MissingValueException("LogCollectorSettings requires id to be set,
                first request the LogCollectorSettings using logCollectorStates method to allow server to set ID");
        }

        $response = $this->service->prepAndSend($url, array(200), "PUT", $collector->toJSON(), true);
        return LogCollectorSettings::createFromJSON(json_decode($response));
    }
public function updateLogCollector(LogCollectorSettings $collector)
    {
        if (!is_null($collector->id())) {
            $url = self::makeUrl($collector->id());
        } else {
            throw new MissingValueException("LogCollectorSettings requires id to be set,
                first request the LogCollectorSettings using logCollectorStates method to allow server to set ID");
        }

        $response = $this->service->prepAndSend($url, array(200), "PUT", $collector->toJSON(), true);
        return LogCollectorSettings::createFromJSON(json_decode($response));
    }
public function updateLogCollector ( LogCollectorSettings $ collector ) { if ( ! is_null ( $ collector -> id ( ) ) ) { $ url = self :: makeUrl ( $ collector -> id ( ) ) ; } else { throw new MissingValueException ( "LogCollectorSettings requires id to be set,
                first request the LogCollectorSettings using logCollectorStates method to allow server to set ID" ) ; } $ response = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , "PUT" , $ collector -> toJSON ( ) , true ) ; return LogCollectorSettings :: createFromJSON ( json_decode ( $ response ) ) ; }
Update an existing Log Collector's settings,
you cannot change "name" after a collectors has been created on the server.
you cannot re-run a collector which has been stopped.

@param \Jaspersoft\Dto\Diagnostic\LogCollectorSettings $collector
@throws \Jaspersoft\Exception\MissingValueException
@returns \Jaspersoft\Dto\Diagnostic\LogCollectorSettings
Update an existing Log Collector s settings you cannot change name after a collectors has been created on the server . you cannot re - run a collector which has been stopped .