Render template
render_templateRender a template filled with your content. "changes" maps field keys from get_template to new values: {"w0.text": "Q3 Sales Review", "w5.labels": ["Jul","Aug","Sep"], "w5.datasets.0.values": [42, 51, 63]}. Fields you leave out keep the template's sample content, so replace all of it. To change how many items a list has, replace the whole list (e.g. "w7.values": [{"label": "A", "value": 40}, ...]); 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 from list_templates. | |
| format | No | png (default) returns an image; svg returns the SVG markup as text. | |
| changes | No | Field key -> new value, keys from get_template. |
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. |