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

# UpdateBatch

> Change a batch header with the UpdateBatch method of the ABBYY FlexiCapture Web Services API, editing Name, BatchTypeId, Priority, and other parameters.

## What it does

Changes the header of a batch. Modifies the fields **Name**, **BatchTypeId, Description**, and **Priority** and the registration parameters of the batch whose ID is the same as the value of **Batch.Id**. The other fields in the Batch structure are ignored.

## Definition

```
void UpdateBatch( int sessionId, Batch batch );
```

## Parameters

| **Name**  | **Type**                                                    | **Description**                                    |
| --------- | ----------------------------------------------------------- | -------------------------------------------------- |
| sessionId | int                                                         | The ID of the connection to the Application Server |
| batch     | [Batch](/flexi-capture/api/structures/batch-api-structures) | The parameters of the batch to be added            |

## Returned value

None.
