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

# SetDocumentPriority

> SetDocumentPriority method in the ABBYY FlexiCapture web services API changes the processing priority of a document using a value from the Priority enumeration.

## What it does

Allows you to change the document priority.

## Definition

```
void SetDocumentPriority( int sessionId, int batchId, int documentId, int priority );
```

## Parameters

| **Name**   | **Type** | **Description**                                                                                 |
| ---------- | -------- | ----------------------------------------------------------------------------------------------- |
| sessionId  | int      | The ID of the connection to the Application Server                                              |
| batchId    | int      | The ID of the batch that contains the document                                                  |
| documentId | int      | The ID of the document whose priority must be changed                                           |
| priority   | int      | Document priority. See [Priority](/flexi-capture/api/structures/t-priority) for possible values |

## Returned value

None.
