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

# UpdateTicket

> Use UpdateTicket in the ABBYY FlexiCapture API to refresh the status of a licensing ticket and return the updated TicketInfo object.

## What it does

Updates a licensing ticket.

## Definition

```
bool UpdateTicket( int sessionId, int ticketId, out TicketInfo ticketInfo );
```

## Parameters

| **Name**  | **Type** | **Description**                                    |
| --------- | -------- | -------------------------------------------------- |
| sessionId | int      | The ID of the connection to the Application Server |
| ticketId  | int      | The ID of the licensing ticket                     |

## Returned value

| **Type**                                                | **Description**                                            |
| ------------------------------------------------------- | ---------------------------------------------------------- |
| bool                                                    | The flag which shows if the ticket has been updated or not |
| [TicketInfo](/flexi-capture/api/structures/ticket-info) | Licensing ticket                                           |
