create_document_image
Upload an image to an IT Glue document for inline display, using base64 to bypass HTML sanitizer limits on embedded images.
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 |