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 then authors the body. 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 (from the template; not writable as TrMD) 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. 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) | |
| projectId | Yes | The project UUID (from traceable_workspace_projects) | |
| templateId | No | Template document UUID to clone | |
| trmContent | No | Initial TrMD content (body only when templateId is set) | |
| documentType | No | Document type from the organisation taxonomy | |
| documentNumber | No | Document number (e.g. TD01-003) |