---
title: "POST /api/table/{id}/replace-csv"
method: POST
path: "/api/table/{id}/replace-csv"
tags: ["/api/table"]
---

# POST /api/table/{id}/replace-csv

`POST /api/table/{id}/replace-csv`

Replaces the contents of the table identified by `:id` with the rows of an uploaded CSV file. The table must have
  been created by uploading a CSV file.

## Path parameters

- `id` integer, required

## Response `2XX`

Successful response

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

## Changes

- **2026-03-09** `78297d193ca4` — 1 info
  - api operation id `post-api-table-id-replace-csv` was added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/table/:id/replace-csv/post.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) · [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/b1dc4ea67567/schema)
