> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Ticket

Update an existing ticket by its ID.

<Note>
  External Documentation

  To learn more, visit the [Datto Autotask documentation](https://webservices3.autotask.net/atservicesrest/swagger/ui/index#/Tickets/Tickets_UpdateEntity).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Company ID                | The ID of the company of the ticket. Cannot be changed if the ticket has an associated and posted `TimeEntry`, `TicketCharge`, or `Expense`.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | Description               | The description of the ticket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Due Date Time             | The due date and time for the ticket.<br /><br />This field may be required depending on the ticket’s category configuration:<br />\* If the ticket category specifies only a due date or only a due time, this field becomes required and must be supplied.<br />\* If the ticket category (or the user's default ticket category) has both due date and due time configured, this field is optional.<br /><br />When a ticket is created from a Datto RMM alert and the category defines a default due date/time, Autotask will override the alert’s `Due Date Time` and apply the category’s default. |
  | ID                        | The id of the ticket to update.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Impersonation Resource ID | The Autotask resource ID to impersonate when performing API requests. Use this when you need to act on behalf of a specific Autotask user.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | Priority                  | The priority of the ticket.<br /><br />**Note:** If the current priority is inactive, update is allowed if the priority value is not changed, or if priority is changed to an active value.                                                                                                                                                                                                                                                                                                                                                                                                              |
  | Queue ID                  | The ID of the queue to assign to the ticket. This parameter is required in cases where the ticket’s category and its `Queue is Required` setting:<br /><br />\* If the category requires a queue `Always`, this field must be provided.<br />\* If the category requires a queue `Never`, this field is optional.<br />\* If the category requires a queue `Required When Primary Resource ID Blank`, the API will require either `Queue ID` or `Resource ID` — and will return an error if both are empty.                                                                                              |
  | Status                    | The status of the ticket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | Title                     | The title of the ticket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Additional Parameters | A JSON object for additional body parameters. Values specified in this parameter will override equivalent parameters.<br /><br />For example:<br /><pre><code>\{<br />    "first\_key": 12345,<br />    "second\_key": "some\_value"<br />}</code></pre>The object must follow the vendor's structure as defined in the [API documentation](https://webservices3.autotask.net/atservicesrest/swagger/ui/index#/Tickets/Tickets_UpdateEntity). |
  | Estimated Hours       | The number of hours estimated to finish with the ticket.                                                                                                                                                                                                                                                                                                                                                                                      |
  | Issue Type            | The type of the issue that is assigned to the ticket.                                                                                                                                                                                                                                                                                                                                                                                         |
</div>

## Example Output

```json theme={"dark"}
{
	"itemId": "{Item ID}"
}
```

## Workflow Library Example

[Update Ticket with Datto Autotask and Send Results Via Email](https://library.blinkops.com/workflows/update-ticket-with-datto-autotask-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-ticket-with-datto-autotask-and-send-results-via-email/canvas" />
</div>
