Change a dataset's schema
update_datasetChanges a dataset's schema or metadata: add columns, remove columns, fix a column's description or type (update_columns), change the description or update cadence. Keep descriptions true: when you start storing a new category or scenario, update the column description that lists them. Existing rows keep their values; new columns are null until you upsert values. The key cannot be changed; create a new dataset for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The dataset to change. | |
| note | No | Optional changelog note. | |
| add_columns | No | Columns to add. Existing rows get null. | |
| description | No | New description of what one row represents. | |
| remove_columns | No | Names of columns to remove, with their values. | |
| update_cadence | No | How often the data is refreshed. "none" clears it (refreshed only when someone asks). | |
| update_columns | No | Change an existing column's description and/or type, e.g. [{"name": "segment", "description": "close_network | slack | waitlist"}]. A type change is checked against every existing row first. |