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

# Move conditional format rule

> Move a Google Sheets conditional-format rule to a different priority.

`googleSheets.moveConditionalFormatRule()` changes a conditional-format rule's priority within one sheet.

## Example

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { googleSheets } from "automate.ax/google-sheets"

export default automation("Lower a formatting rule's priority", () => {
  onDashboardRun({ title: "Lower a formatting rule's priority" })

  googleSheets.moveConditionalFormatRule({
    spreadsheet: "spreadsheet-id",
    sheet: "Orders",
    fromIndex: 0,
    toIndex: 2,
  })
})
```

## Inputs

Provide `spreadsheet`, `sheet`, current zero-based `fromIndex`, and new zero-based `toIndex`. Indexes are per sheet and are positions, not stable IDs. Moving a rule changes the indexes in the affected priority list. Second argument `{ account }` selects the Google Account. All action inputs accept compatible signals.

## Output

Returns the moved rule as `{ index, ranges, rule }`, where `index` is `toIndex`.
