Download an attachment
download_attachmentResolve the download URL for a ticket attachment. Provide outputPath to save the file to a local path.
Instructions
Resolve the download URL of a ticket attachment and, when outputPath is given, save the file to that local path. Without outputPath only the URL is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Access token of a private project. Only needed without an API key, or for projects behind a private link. | |
| fileId | Yes | File id of the attachment. | |
| ticketId | Yes | Ticket the file belongs to. | |
| outputPath | No | Absolute path to write the file to. Existing files are overwritten. |