Add an ID-grid column
traceable_grid_column_addAdd a column to an ID grid. Every id-row gets a fresh empty cell. Pass type, optionally insertAt (0-based position; omit to append) and label (omit for the type default ID / Link / Column). Only one id column is allowed per grid. Calling it twice adds two columns. 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 |
|---|---|---|---|
| type | Yes | The new column's type | |
| label | No | Header label (default: the type's default label) | |
| header | Yes | Identify the row by itemId or atOrder (pass one). | |
| insertAt | No | 0-based column position to insert at (default: append) | |
| 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). |