> ## 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.

# AddNewBatch

> ABBYY FlexiCapture Web Services API の AddNewBatch メソッドを使用して Project に新しいバッチを追加し、その所有者を設定します。このメソッドは新しいバッチ ID を返します。

<div id="what-it-does">
  ## 機能
</div>

Project に新しいバッチを追加し、バッチの所有者 (ユーザーまたはグループ) を指定できます。

<div id="definition">
  ## 定義
</div>

```
int AddNewBatch( int sessionId, int projectId, Batch batch, int ownerId);
```

<div id="parameters">
  ## パラメーター
</div>

| **Name**  | **型**                                                          | **Description**               |
| --------- | -------------------------------------------------------------- | ----------------------------- |
| sessionId | int                                                            | Application Server への接続 ID    |
| projectId | int                                                            | バッチの追加先となるProjectの ID         |
| batch     | [Batch](/ja/flexi-capture/api/structures/batch-api-structures) | 追加するバッチのパラメーター                |
| ownerId   | int                                                            | Projectの所有者であるユーザーまたはグループの ID |

<div id="returned-value">
  ## 戻り値
</div>

| **型** | **説明**       |
| ----- | ------------ |
| int   | 作成されたバッチの ID |
