ic_download_document
Download a student's document (PDF) to disk, inside the download directory (IC_DOWNLOAD_DIR, default ~/Downloads). documentId is the url field returned by ic_list_documents. Will not overwrite an existing file unless overwrite is true.
Instructions
Download a student's document (PDF) to disk, inside the download directory (IC_DOWNLOAD_DIR, default ~/Downloads). documentId is the url field returned by ic_list_documents. Will not overwrite an existing file unless overwrite is true. Returns FeatureDisabled if the district has the module turned off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| district | Yes | ||
| overwrite | No | ||
| documentId | Yes | The url field returned by ic_list_documents | |
| destinationPath | Yes | Where to write the PDF. Must be inside the download directory (IC_DOWNLOAD_DIR, default ~/Downloads); a relative path resolves against it. |