Rename an ID-grid column
traceable_grid_column_renameRename an ID-grid column: change its header text in place, leaving its type and cells alone. Pass colIdx and label. Use it to correct a mislabeled header (e.g. a default "Column"). Existing cells and trace links are preserved (unlike traceable_segment_write, which replaces the whole grid and breaks links). Identify the grid by its HEADER row (header.itemId or header.atOrder). To set a CELL's value use traceable_grid_cell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The new header text | |
| colIdx | Yes | 0-based index of the column to rename | |
| header | Yes | Identify the row by itemId or atOrder (pass one). | |
| documentId | Yes | The document UUID | |
| baseRevision | No | The revision (meta.revision) from the traceable_doc_read, or the previous write, this change is based on. When given, the write is refused with nothing changed if the document has changed since, so you never overwrite edits you have not seen. Each write returns the current revision. The revision tracks the document's content rows, so changes that touch no row (its name and other metadata, the reference list, Test Plan entries) return it unchanged. A revision is an opaque value: compare it whole, never read meaning into its parts (they are not a counter). |