---
title: "Download one package-relative upstream fix file"
method: GET
path: "/api/v1/upstream-fixes/{id}/composer/{vendor}/{file}"
tags: ["upstream-fixes"]
---

# Download one package-relative upstream fix file

`GET /api/v1/upstream-fixes/{id}/composer/{vendor}/{file}`

## Request

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

## Path parameters

- `id` string, required
- `vendor` string, required
- `file` string, required

## Query parameters

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

## Response `200`

Patch with paths relative to the Composer package root

## Other responses

- `400`: Missing version or missing/invalid distribution
- `404`: Unknown fix, unmatched version or missing package file
- `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)
