src/Jaspersoft/Service/PermissionService.php
public function createRepositoryPermissions($permissions)
    {
		$url = $this->service_url . '/permissions';
		$body = json_encode(array('permission' => $permissions));
		$permissions = $this->service->prepAndSend($url, array(201), 'POST', $body, true, 'application/collection+json', 'application/json');
        return self::batchDataToArray($permissions);
	}
public function createRepositoryPermissions($permissions)
    {
		$url = $this->service_url . '/permissions';
		$body = json_encode(array('permission' => $permissions));
		$permissions = $this->service->prepAndSend($url, array(201), 'POST', $body, true, 'application/collection+json', 'application/json');
        return self::batchDataToArray($permissions);
	}
public function createRepositoryPermissions ( $ permissions ) { $ url = $ this -> service_url . '/permissions' ; $ body = json_encode ( array ( 'permission' => $ permissions ) ) ; $ permissions = $ this -> service -> prepAndSend ( $ url , array ( 201 ) , 'POST' , $ body , true , 'application/collection+json' , 'application/json' ) ; return self :: batchDataToArray ( $ permissions ) ; }
Create multiple RepositoryPermission

@param array $permissions A set of \Jaspersoft\Dto\Permission\RepositoryPermission
@return array A set of RepositoryPermission that were created
Create multiple RepositoryPermission