---
title: "Download attachment(s) for a given filter in ZIP format"
method: POST
path: "/api/attachments/download"
tags: ["Attachment"]
---

# Download attachment(s) for a given filter in ZIP format

`POST /api/attachments/download`

## Query parameters

- `fileName` string

## Request body

- AttachmentRequestFindParameters — Parameters used for searching/finding attachmewnts. Note: These filters are applied using the AND operator. If both attachmentIds and owner are provided, attachments that do match the owner will not be returned.
  - `owner` AttachmentOwnerDto — Attachment owner
    - `type` 'salesOrder' | 'salesOrderReceiving' | 'salesOrderPartLineItem' | 'quote' | 'quotePartLineItem' | 'purchaseOrder' | 'purchaseOrderReceiving' | 'purchaseOrderPartLineItem' | 'invoice' | 'workOrderOperation' | 'operation' | 'inventoryLot' | 'item' | 'job' — Owner types
    - `id` string — The primary owner id of this attachment.
  - `owners` AttachmentOwnerDto[], nullable — The primary owners of the attachment.
    - `type` 'salesOrder' | 'salesOrderReceiving' | 'salesOrderPartLineItem' | 'quote' | 'quotePartLineItem' | 'purchaseOrder' | 'purchaseOrderReceiving' | 'purchaseOrderPartLineItem' | 'invoice' | 'workOrderOperation' | 'operation' | 'inventoryLot' | 'item' | 'job' — Owner types
    - `id` string — The primary owner id of this attachment.
  - `attachmentIds` string[], nullable — Filter to attachments whose ids are in the list.
  - `formats` CommonEnumAttachmentMediaFormatEnum[], nullable — Allows for filtering based on specific attachment format types.

## Response `200`

The attachments for the given filter

## Other responses

- `400` — File extension not supported
- `404` — No attachments exist

---

[API](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi.md) · [All operations](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fulcrumpro/fulcrum-publicapi/versions/1b5649cff14a/schema)
