src/Jaspersoft/Service/PermissionService.php
public function updateRepositoryPermission(RepositoryPermission $permission)
    {
        $url = $this->service_url . '/permissions' . $permission->uri;
        $url .= ";recipient=" . str_replace('/', '%2F', $permission->recipient);
        $data = $this->service->prepAndSend($url, array(200), 'PUT', json_encode($permission), true);
        return RepositoryPermission::createFromJSON($data);
    }
public function updateRepositoryPermission(RepositoryPermission $permission)
    {
        $url = $this->service_url . '/permissions' . $permission->uri;
        $url .= ";recipient=" . str_replace('/', '%2F', $permission->recipient);
        $data = $this->service->prepAndSend($url, array(200), 'PUT', json_encode($permission), true);
        return RepositoryPermission::createFromJSON($data);
    }
public function updateRepositoryPermission ( RepositoryPermission $ permission ) { $ url = $ this -> service_url . '/permissions' . $ permission -> uri ; $ url .= ";recipient=" . str_replace ( '/' , '%2F' , $ permission -> recipient ) ; $ data = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'PUT' , json_encode ( $ permission ) , true ) ; return RepositoryPermission :: createFromJSON ( $ data ) ; }
Update a single RepositoryPermission

Note: only the mask of a RepositoryPermission can be updated

@param \Jaspersoft\Dto\Permission\RepositoryPermission $permission updated RepositoryPermission object
@return RepositoryPermission
Update a single RepositoryPermission