src/Jaspersoft/Service/PermissionService.php
public function createRepositoryPermission(RepositoryPermission $permission)
    {
        $url = $this->service_url . '/permissions';
        $body = json_encode($permission);
        $response = $this->service->prepAndSend($url, array(201), 'POST', $body, true);
        return RepositoryPermission::createFromJSON($response);
    }
public function createRepositoryPermission(RepositoryPermission $permission)
    {
        $url = $this->service_url . '/permissions';
        $body = json_encode($permission);
        $response = $this->service->prepAndSend($url, array(201), 'POST', $body, true);
        return RepositoryPermission::createFromJSON($response);
    }
public function createRepositoryPermission ( RepositoryPermission $ permission ) { $ url = $ this -> service_url . '/permissions' ; $ body = json_encode ( $ permission ) ; $ response = $ this -> service -> prepAndSend ( $ url , array ( 201 ) , 'POST' , $ body , true ) ; return RepositoryPermission :: createFromJSON ( $ response ) ; }
Create a single RepositoryPermission

@param \Jaspersoft\Dto\Permission\RepositoryPermission $permission
@return \Jaspersoft\Dto\Permission\RepositoryPermission
Create a single RepositoryPermission