Overview
Add additional content (text, variables, formulas, images) to an existing Mathcad Prime (.mcdx) document. This allows you to build documents incrementally or update existing calculations.Asynchronous Operation: Returns immediately with a job ID. Poll for the updated document download URL.
Authentication
Bearer token (API key from app.stru.ai)
Path Parameters
Document identifier (from previous create/read operation)
Request Body
Array of new elements to add to the document
Where to add elements:
"append" (default) or "prepend"Element Types
Same as create-document operation:- Text: Headers and descriptions
- Variables: Named values with units
- Formulas: Mathematical expressions
- Images: Embedded diagrams
Example Request
Response
Use Cases
Incremental Document Building
Incremental Document Building
Build documents in stages:
- Create initial document with inputs
- Add calculations section
- Add results and summary
- Add final conclusions
Dynamic Updates
Dynamic Updates
Update existing calculations with new code requirements or design changes without recreating the entire document.
Template Expansion
Template Expansion
Start with a base template, then add project-specific calculations dynamically.
Best Practices
Verify dependencies - Ensure variables referenced in new formulas are already defined in the document
Use logical sections - Add section headers (text elements) to organize new content
Maintain order - Elements are added in the order provided in the array