Rename document ID prefix
traceable_doc_rename_prefixRename a document's TraceID prefix in place, rewriting every TraceID (traceable rows, native-table trace cells, and ID-grid id cells). Plain text and other rows without a TraceID are not changed, and the old prefix written as prose inside text is not rewritten. Trace links are preserved — only the human-readable ids change — so you do NOT need to recreate the document to re-prefix it. The document must be an editable draft (published documents are read-only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newPrefix | Yes | New prefix: 1–12 uppercase letters, digits, or hyphens (e.g. IQ-R) | |
| 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). |