---
title: "Download a composer-patches bundle for an upstream fix"
method: GET
path: "/api/v1/upstream-fixes/{id}/composer.zip"
tags: ["upstream-fixes"]
---

# Download a composer-patches bundle for an upstream fix

`GET /api/v1/upstream-fixes/{id}/composer.zip`

## Request

- Base URL: `https://magento.watch`
- URL: `https://magento.watch/api/v1/upstream-fixes/{id}/composer.zip`
- Auth: none required

## Path parameters

- `id` string, required

## Query parameters

- `version` string, required
- `distribution` 'magento-community' | 'magento-commerce', required
- `ref` string
- `includeUnmatched` boolean

## Response `200`

ZIP with README, Composer snippet and package-relative patch files

## Other responses

- `400`: Missing version or missing/invalid distribution
- `404`: Unknown fix or version outside affected versions
- `502`: Upstream diff unavailable

---

[API](https://skmtc.dev/magento/apis/magento-watch-api.md) · [All operations](https://skmtc.dev/magento/apis/magento-watch-api/llms.txt) · [OpenAPI document](https://skmtc.dev/magento/apis/magento-watch-api/revisions/e542302fb8a0?raw)
