Render template
render_templateRender a template filled with new content. "changes" maps the template's field keys to new values, e.g. {"w0.text": "Q3 Sales Review", "w5.labels": ["Jul","Aug","Sep"], "w5.datasets.0.values": [42, 51, 63]}. Fields not included keep the template's sample content. Replacing a whole list (e.g. "w7.values": [{"label": "A", "value": 40}, ...]) changes how many items it has; each item keeps the colours of the item it replaces. Returns the image and a link that opens the filled template in the GraphMake editor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Template id, e.g. "business-stats". | |
| format | No | png (default) returns an image; svg returns the SVG markup as text. | |
| changes | No | Field key -> new value, e.g. {"w0.text": "Q3 Sales Review"}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| bytes | Yes | Size of the PNG or SVG in bytes. The image itself is in the content. | |
| width | Yes | Width of the returned image in px (tall templates come back narrower). | |
| format | Yes | ||
| editorUrl | Yes | Opens the result in the free GraphMake editor, where it can be restyled and exported as PNG, SVG or PDF. |