download-wiki-attach-file
Downloads a file from a Dooray wiki using its attach file ID, with an option to save it to a local path or return it as base64 for small files.
Instructions
Download a file from a Dooray wiki using attach file ID.
Required Parameters:
wikiId: The wiki ID
attachFileId: The attach file ID (get from wiki page detail API: $.result.files.attachFileId or $.result.images.attachFileId)
Optional:
savePath: Local path to save the file. Can be a directory (filename auto-detected) or full file path. Recommended for large files.
Examples:
Save to file: { "wikiId": "123", "attachFileId": "456", "savePath": "/tmp/downloads/" }
Base64 (small files): { "wikiId": "123", "attachFileId": "456" }
Note: The attachFileId is different from fileId. Use this endpoint when you have an attachFileId from the page detail API's $.result.files.attachFileId or $.result.images.attachFileId field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wikiId | Yes | Wiki ID | |
| savePath | No | Local path to save (directory or full path). Recommended for large files. | |
| attachFileId | Yes | Attach file ID (from page detail API) |