> ## 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 custom field

> Update one Apollo custom field.

`apollo.updateCustomField` updates one custom field's label, group, enrichment schedule, or metadata.

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

export default automation("Rename a custom field", () => {
  onDashboardRun({ title: "Rename a custom field" })
  apollo.updateCustomField({
    fieldId: "contact.694095a80f1b6000110fc556",
    label: "Renewal owner",
  })
})
```

`fieldId` requires a modality-prefixed ID, such as `contact.694095a80f1b6000110fc556`. Use the value returned by `apollo.createCustomField` or `apollo.listFields`. Set at least one mutable field. Apollo doesn't let you change a field's modality or type.

<Warning>
  `picklistValues` replaces the complete option set. Include every option you
  want to retain and preserve existing option IDs, or stored values can become
  orphaned.
</Warning>
