Attach to Card
attach_to_cardAdd an attachment to a Trello card from an https URL, local file, or inline base64 data by specifying the card ID and source.
Instructions
Attach something to a card. The start of source decides what happens: https:// stores a link, and the file stays at that URL; file:// uploads a local file from the folder in TRELLO_ATTACH_ROOT, and is refused when that is not set; data:;base64, uploads inline data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the attachment on the card. A name without an extension takes the source's. Defaults to the file name, or attachment-<time> for inline data | |
| cardId | Yes | ID of the card to attach to | |
| source | Yes | An https:// URL, a file:// URL, or a data:<mime>;base64,<data> URL | |
| mimeType | No | MIME type. Defaults to the one the extension or the data URL gives |