> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/downloadattachments.md).

# downloadAttachments

Downloads a list of attachment ids as a zip file.

### Parameters

1. downloadOptions - JSON object
   * requestedIds - list of ids to download
   * fileName - (optional) name of the downloaded file

### Example Usages

```javascript
   brixxApi.downloadAttachments({
      requestedIds:[196, 197, 200]
   });
```

```javascript
   brixxApi.downloadAttachments({
      requestedIds:[196, 197, 200],
      fileName: "myDownload.zip"
   });
```
