Create document
traceable_doc_createCreate a document in a project. Start from a template: pass templateId to clone an org/system template (header/footer bands, title page, revision + signature scaffolding come along — discover templates with traceable_workspace_templates); trmContent is then APPENDED after the template's body, so read the template first (traceable_doc_read) and do not repeat its headings or scaffold rows; change template rows afterwards with traceable_block_update or traceable_block_delete. To put content under one of the template's own headings (for example an ID grid under "Functional Requirements"), create the document first, read it, then traceable_block_write with afterOrder set to that heading's [[row N]]. Without a template, only default header/footer bands are seeded for any segment trmContent does not provide. A controlled document should end up with a Revision Table, a Reference Table, a Glossary (add its terms with traceable_glossary_add_term) and ID rows for everything that must be linked: see documentComposition in traceable_capabilities. A test report places its Test Plan with [[test-plan plan=""]], naming a plan that already exists in Project settings. To put the new document on its project's board (a Design Phases cell, or a cell of the quality system diagram), pass placement with a cell's phaseId and workstreamId from traceable_board_read. To write the document a placeholder card planned, pass placeholderId (a placeholder's cardId from traceable_board_read) instead: the document takes the placeholder's card, in its cell and position. Returns the new documentId and the created rows with their row orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Document name | |
| groupId | No | Document group UUID (from traceable_workspace_map) | |
| idPrefix | No | TraceID prefix (uppercase letters/digits/hyphens, e.g. FR) | |
| placement | No | A board cell to put the document in (from traceable_board_read) | |
| projectId | Yes | The project UUID (from traceable_workspace_projects) | |
| templateId | No | Template document UUID to clone | |
| trmContent | No | Initial TrMD content. With templateId it is body content appended after the template body | |
| documentType | No | Document type from the organisation taxonomy | |
| placeholderId | No | A placeholder card (its cardId from traceable_board_read) this document is written for; it takes the card | |
| documentNumber | No | Document number (e.g. PRJ-003) |