> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AddNewBatchExt

> Add a batch to a FlexiCapture project and set its owner with the AddNewBatchExt Web Services API method.

## What it does

Adds a new batch to a project and lets you specify the owner of the batch (a user or group).

## Definition

```csharp theme={null}
int AddNewBatchExt(int sessionId, int projectId, Batch batch, ownerId int);
```

## Parameters

| Name        | Type                                                        | Description                                           |
| ----------- | ----------------------------------------------------------- | ----------------------------------------------------- |
| `sessionId` | `int`                                                       | The ID of the connection to the Application Server    |
| `projectId` | `int`                                                       | The ID of the project to which a batch is to be added |
| `batch`     | [Batch](/flexi-capture/api/structures/batch-api-structures) | The parameters of the batch to be added               |
| `ownerId`   | `int`                                                       | The ID of the user or group who owns the project      |

## Returned value

| Type  | Description                 |
| ----- | --------------------------- |
| `int` | The ID of the created batch |
