---
title: "Download Excel Data Endpoint"
method: POST
path: "/api/mdm/download_excel_data"
tags: ["MDM"]
---

# Download Excel Data Endpoint

`POST /api/mdm/download_excel_data`

Endpoint to download Excel data for a given table in a customer's database.

Args:
    request (Request): The incoming request.
    App_Code (str): The application code.
    Customer_Key (str): The customer key.
    Table_Name (str): The name of the table to download.
    split_column (str): The column to split the data based on.
    db (Session): The database session.
    current_user (str): The current user.

Returns:
    JSONResponse: A JSON response with a message indicating whether the request was successful or not.

Raises:
    HTTPException: If the customer key is invalid or if there is an error fetching the database name.

## Query parameters

- `split_column` string, required

## Headers

- `App-Code` string, required
- `User-Code` string, required
- `Customer-Key` string, required
- `Table-Name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) · [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leapsurgebi/leapsurgeapi/revisions/5a6b1464bfeb/schema)
