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

# Download a composer-patches bundle

`GET /api/v1/patches/{id}/composer.zip`

## Request

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

## Path parameters

- `id` string, required

## Query parameters

- `version` string, required
- `distribution` 'magento-community' | 'magento-commerce', required
- `ref` string
- `tests` 'with' | 'without'

## Response `200`

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

## Other responses

- `400`: Missing version or missing/invalid distribution
- `404`: Unknown patch or inapplicable version
- `502`: Upstream patch 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)
