---
title: "Retrieve Vulnerability Changes Between Two Update Operations"
method: GET
path: "/matcher/api/v1/internal/update_diff"
tags: ["internal"]
---

# Retrieve Vulnerability Changes Between Two Update Operations

`GET /matcher/api/v1/internal/update_diff`

Given IDs for two Update Operations, this will return the difference between them. This is used in the notification flow.

## Query parameters

- `cur` string — An opaque token previously obtained from the service.
- `prev` string, required — An opaque token previously obtained from the service.

## Response `200`

Changes between two Update Operations.

- UpdateDiff — **This is an internal type, documented for completeness.** An update difference describes changes between two Update Operations.
  - `prev` UpdateOperationSchemaJson — unresolved $ref
  - `cur` UpdateOperationSchemaJson, required — unresolved $ref
  - `added` VulnerabilitySchemaJson[], required — Vulnerabilities present in "cur", but not "prev". — unresolved $ref
  - `removed` VulnerabilitySchemaJson[], required — Vulnerabilities present in "prev", but not "cur". — unresolved $ref

## Other responses

- `400` — Bad Request
- `415` — Unsupported Media Type
- `default` — Internal Server Error

---

[API](https://skmtc.dev/quay/apis/clair-container-analyzer.md) · [All operations](https://skmtc.dev/quay/apis/clair-container-analyzer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quay/clair-container-analyzer/revisions/079b3eb25695/schema)
