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

> Update mutable fields on a Stripe SetupIntent.

Use `stripe.updateSetupIntent` before confirmation to change its payment method, usage, or metadata.

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

export default automation("Update SetupIntent", () => {
  onDashboardRun({ title: "Update SetupIntent" })
  stripe.updateSetupIntent({
    setupIntentId: "seti_123",
    description: "Save card",
  })
})
```

## Inputs

`setupIntentId` is required. Supply only fields Stripe allows in the intent's current state. `idempotencyKey` is optional.

## Output

Returns the updated SetupIntent.
