update_column
Change a dataset column's name, type, or constraints while preserving values. Revalidates all rows, reporting invalid ones with errors so you can fix data issues.
Instructions
Change a column's name, type, or constraints on an existing dataset.
Only the fields you explicitly provide are changed. After the change every stored row is revalidated: rows that no longer satisfy the new definition are reported with their row ids and errors, and their values are preserved so the user can decide how to fix them. Renaming a column moves the values under the new name in all rows.
Args: dataset: Exact dataset name, e.g. "Candidates". column: Current column name to change. changes: Fields to change, e.g. {"max_value": 10} or {"name": "full_name"}.
Returns: {"ok": true, "dataset", "column", "renamed_from": , "rows_checked": , "invalid_rows": {"": [""]}} on success, {"ok": false, "error": ""} for unknown columns or invalid changes.
Example: update_column(dataset="Candidates", column="experience", changes={"max_value": 20})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | ||
| changes | Yes | ||
| dataset | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||