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

# SetTaskPriority

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

## What it does

Allows you to change the task priority.

## Definition

```
void SetTaskPriority( int sessionId, int taskId, int priority );
```

## Parameters

| **Name**  | **Type** | **Description**                                                                             |
| --------- | -------- | ------------------------------------------------------------------------------------------- |
| sessionId | int      | The ID of the connection to the Application Server                                          |
| taskID    | int      | The ID of the task whose priority must be changed                                           |
| priority  | int      | Task priority. See [Priority](/flexi-capture/api/structures/t-priority) for possible values |

## Returned value

None.
