create_attachment
Attach a downloadable file to any IT Glue record by providing the record type, ID, file name, and base64-encoded content.
Instructions
Attach a file to an IT Glue record. Unlike create_document_image this adds a downloadable attachment rather than an image in the document body. Pass the file as base64 with no data: prefix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Base64-encoded file contents. Raw base64 only - strip any 'data:...;base64,' prefix first. | |
| file_name | Yes | File name including extension, e.g. 'network-diagram.png' | |
| resource_id | Yes | ID of the record to attach the file to | |
| resource_type | Yes | The kind of record to attach the file to |