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

> Updates the description or retention settings for a dataset.

`axiom.updateDataset` updates the description or retention settings for a dataset. Provide at least one mutable setting; the action returns the updated dataset.

```ts automations/axiom-update-dataset.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { axiom } from "automate.ax/axiom"

export default automation("Update dataset", () => {
  onHttpRequest({ scope: "automation" })
  axiom.updateDataset({
    datasetName: "production",
    description: "Production logs and events",
    retentionDays: 45,
  })
})
```

## Inputs

`datasetName` is required. Provide at least one of `description`, non-negative `retentionDays`, or `useRetentionPeriod`. Omitted settings are left unchanged.

## Output

Returns the complete updated dataset resource, including its effective retention configuration.

## Permission and failures

The API token needs the organization-level `datasets|update` capability. Axiom rejects missing datasets and invalid retention settings. This mutation is not retried automatically after an ambiguous provider response.
