Rename a TraceID
traceable_trace_id_renameRename a row's visible TraceID in place (a traceable row or an ID-grid row). The row keeps its database identity, so every trace link into or out of it survives; an ID-grid row's id cell is kept in sync and cached link labels that reference the old id are refreshed project-wide. Use this instead of delete-and-reinsert, which would break links. To renumber a whole grid, call this once per row (re-read afterwards is not needed — anchor by TraceID).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toItemId | Yes | The new visible TraceID (e.g. UN-1), unique within the document | |
| documentId | Yes | The document UUID containing the row | |
| fromItemId | Yes | The current visible TraceID (e.g. UN-1.1) | |
| 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). |