src/Jaspersoft/Service/ReportExecutionService.php
public function updateReportExecutionParameters($executionId, array $newParameters, $freshData = true)
    {
        $url = $this->makeUrl($executionId, false, true);
        if (is_bool($freshData)) {
            $url .= '?' . Util::query_suffix(array("freshData" => $freshData));
        }
        $parameters = array();
        foreach($newParameters as $p) {
            if ($p instanceof Parameter) {
                $parameters[] = $p->jsonSerialize();
            } else {
                throw new DtoException(get_called_class() . ": The parameter field must contain
                        only Jaspersoft\\DTO\\ReportExecution\\Parameter item(s)");
            }
        }
        $this->service->prepAndSend($url, array(204), 'POST', json_encode($parameters), true);
    }
public function updateReportExecutionParameters($executionId, array $newParameters, $freshData = true)
    {
        $url = $this->makeUrl($executionId, false, true);
        if (is_bool($freshData)) {
            $url .= '?' . Util::query_suffix(array("freshData" => $freshData));
        }
        $parameters = array();
        foreach($newParameters as $p) {
            if ($p instanceof Parameter) {
                $parameters[] = $p->jsonSerialize();
            } else {
                throw new DtoException(get_called_class() . ": The parameter field must contain
                        only Jaspersoft\\DTO\\ReportExecution\\Parameter item(s)");
            }
        }
        $this->service->prepAndSend($url, array(204), 'POST', json_encode($parameters), true);
    }
public function updateReportExecutionParameters ( $ executionId , array $ newParameters , $ freshData = true ) { $ url = $ this -> makeUrl ( $ executionId , false , true ) ; if ( is_bool ( $ freshData ) ) { $ url .= '?' . Util :: query_suffix ( array ( "freshData" => $ freshData ) ) ; } $ parameters = array ( ) ; foreach ( $ newParameters as $ p ) { if ( $ p instanceof Parameter ) { $ parameters [ ] = $ p -> jsonSerialize ( ) ; } else { throw new DtoException ( get_called_class ( ) . ": The parameter field must contain
                        only Jaspersoft\\DTO\\ReportExecution\\Parameter item(s)" ) ; } } $ this -> service -> prepAndSend ( $ url , array ( 204 ) , 'POST' , json_encode ( $ parameters ) , true ) ; }
Re-run the report using new report parameters

@param string $executionId
@param array<Jaspersoft\Dto\ReportExecution\Parameter> $newParameters An array of new reportParameters
@param bool $freshData Should fresh data be fetched? (Default: true)
@throws DtoException
Re - run the report using new report parameters