public function copy($template, $newName = null)
    {
        $response = $this->request(self::REQUEST_POST, 'templates/'.$template.'/copy', [
            'name' => $newName
        ]);

        return $response->response;
    }
public function copy($template, $newName = null)
    {
        $response = $this->request(self::REQUEST_POST, 'templates/'.$template.'/copy', [
            'name' => $newName
        ]);

        return $response->response;
    }
public function copy ( $ template , $ newName = null ) { $ response = $ this -> request ( self :: REQUEST_POST , 'templates/' . $ template . '/copy' , [ 'name' => $ newName ] ) ; return $ response -> response ; }
Creates copy of given template to active workspace

@param integer $template
@param string $newName

@return \stdClass
@throws \ActualReports\PDFGeneratorAPI\Exception
Creates copy of given template to active workspace