create_attachment
Attach a file to an IT Glue record by uploading base64 content, and use the returned downloadUrl to embed images in document bodies.
Instructions
Attach a file to an IT Glue record, and the only supported way to get a picture into a document body: upload here, then reference the returned downloadUrl from an . 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 |