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

> Update a Close SMS activity.

`close.updateSms` modifies a draft Close SMS or cancels a scheduled or outbox message that Close has not sent yet.

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

export default automation("Update Close SMS", () => {
  onDashboardRun({ title: "Update Close SMS" })
  close.updateSms({ smsId: "acti_abc123", text: "Updated message" })
})
```

Close only permits message fields such as `text` to be modified while an SMS is a draft. Provide `smsId` and at least one documented mutable SMS field. Set `status` to `scheduled` with `dateScheduled` to send a draft later, or set it to `outbox` to send immediately. A scheduled or outbox message that Close has not sent yet can be canceled by setting `status` back to `draft`. Close can reuse the draft's existing local phone number, so you don't need to repeat `localPhone` in the update. Optional second argument `{ account }` selects a named binding. Returns the updated `CloseSms`.
