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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update ticket

> Update writable properties on one HubSpot ticket.

Use `hubspot.updateTicket` to update writable properties on one HubSpot ticket.

```ts automations/hubspot-update-ticket.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { hubspot } from "automate.ax/hubspot"

export default automation("Update ticket", () => {
  onDashboardRun({ title: "Update ticket" })
  hubspot.updateTicket({
    recordId: "12345",
    properties: [{ name: "subject", value: "Login issue" }],
  })
})
```

## Inputs

Provide `recordId` and at least one property. Optional `idProperty` treats `recordId` as a unique property value. Optional second argument `{ account }` selects a named HubSpot binding.

## Output

Returns the updated HubSpot ticket record.
