Set download
set_downloadHost a file behind a stable link (/api/downloads/); link to it from a Button. New: name + file. New version: downloadId + file (same link). Roll back: downloadId + currentVersionId. File = filePath (stdio) or mediaId of a private upload. Pro+; .exe/.dmg etc need Agency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| name | No | Display name; required when creating. | |
| label | No | e.g. v1.2 | |
| notes | No | Changelog. | |
| mediaId | No | From upload_file({ private: true }). | |
| filename | No | Saved-as name; required with mediaId. | |
| downloadId | No | Existing download; omit to create. | |
| currentVersionId | No | Serve this existing version. |