---
title: "Streams an attachment of cases matching the search query."
method: POST
path: "/cases/downloadAsync"
tags: ["Case"]
---

# Streams an attachment of cases matching the search query.

`POST /cases/downloadAsync`

## Request

- Base URL: `http://localhost:3001/api`
- URL: `http://localhost:3001/api/cases/downloadAsync`
- Auth: none declared

## Request body

- object
  - `query` string: Cases matching this query will be returned.

## Response `200`

OK

- SignedUrl
  - `signedUrl` string

## Other responses

- `204`: Empty
- `500`: Internal server error

## Changes

- **2021-11-01** `9d45bf6ec398`: 1 info
  - added the success response with the status `200`
- **2021-06-08** `f3e6cdf65c57`: 1 info
  - endpoint added
- **2021-06-08** `b5622bc5a5ff`: 1 breaking
  - api path removed without deprecation
- **2021-04-23** `8b1cf5307e7f`: 1 info
  - endpoint added
- **2021-04-23** `c4942bfd44db`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api/changes/cases/downloadAsync/post.md)

---

[API](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api.md) - [All operations](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api/revisions/5b1151265235?raw)
