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

> Update SMS campaign through the Brevo API.

`brevo.updateSmsCampaign` update SMS campaign through the Brevo API.

## Example

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { brevo } from "automate.ax/brevo"

export default automation("Update SMS campaign", () => {
  onDashboardRun({ title: "Update SMS campaign" })

  brevo.updateSmsCampaign({ campaignId: 21, content: "Updated launch message" })
})
```

## Inputs and output

Inputs:

```ts theme={null}
{
  campaignId: number
  name?: string
  content?: string
  sender?: string
  organisationPrefix?: string
  recipients?: {
    listIds: number[]
    exclusionListIds?: number[]
  }
  scheduledAt?: string
  unicodeEnabled?: boolean
  unsubscribeInstruction?: string
}
```

`campaignId` and recipient IDs are positive integers. Text fields must be non-empty when present, `sender` is limited to 15 characters, `listIds` can't be empty, and `scheduledAt` is an ISO 8601 timestamp with an offset. Optional fields have no implicit default.

Completes without a value. The sender is limited to Brevo's 15-character maximum. Pass `{ account }` as the second argument to select a named Brevo account binding.
