---
title: "Export Tes Condition Diff"
method: GET
path: "/api/v1/tes/export"
tags: ["tes"]
---

# Export Tes Condition Diff

`GET /api/v1/tes/export`

## Request

- The document declares no server URL.
- Auth: none declared

Generates and exports a CSV of condition diffs between specified TES versions.

Args:
    cur_version(str) : The ceiling TES version to compare against
    prev_version(str) : The floor TES version to compare against
    canonical_url(str) : The condition diff being requested
    db (AsyncDatabaseConnection) : The db connection.

Returns:
        Response: an HTTP response that gives the browser a CSV file to download

## Query parameters

- `cur_version` string, required
- `prev_version` string, required
- `canonical_url` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-09** `fca481966403`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2/changes/api/v1/tes/export/get.md)

---

[API](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2.md) - [All operations](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2/llms.txt) - [OpenAPI document](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner-2/revisions/fca481966403?raw)
