create_document_image
Upload an image as base64 to an IT Glue document so it appears inline in the body, working around the HTML sanitiser's restrictions on inline SVG and data URIs.
Instructions
Upload an image into an IT Glue document so it can be shown inline in the document body. Pass the file as base64 with no data: prefix. IT Glue's HTML sanitiser strips inline and rejects data: URIs in , so uploading the image first is the only way to get a picture into a document body. Call publish_document after editing sections to reference it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Base64-encoded file contents. Raw base64 only - strip any 'data:image/png;base64,' prefix first. | |
| file_name | Yes | File name including extension, e.g. 'architecture.png' | |
| document_id | Yes | The document ID to upload the image into |