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

# GetAllowedBatchTypes

> GetAllowedBatchTypes method in the ABBYY FlexiCapture Web Services API returns the batch types within a project that are available to a user with a given role.

## What it does

Gets information about batch types within a project which are available to the user with a given role.

## Definition

```
BatchTypeIdentity [] GetAllowedBatchTypes( int userId, int roleType, int projectId );
```

## Parameters

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>userId</p></td><td><p>int</p></td><td><p>User ID</p></td></tr><tr><td><p>roleType</p></td><td><p>int</p></td><td><p>The type of role to be used for the connection. See <a href="/flexi-capture/api/structures/t-role-type">RoleType</a> for possible values.</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>The ID of the project for which to get the list of available batch types.</p><p>If invalid projectId is passed (less than or equal to zero), the list of available batch types for all projects is returned.</p></td></tr></tbody></table>

## Returned value

| **Type**                                                                  | **Description**                                                                                 |
| ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [BatchTypeIdentity](/flexi-capture/api/structures/batch-type-identity)\[] | A set of records, each containing information about one of available batch types in the project |
