---
title: "Stage a replacement file for an active dataset"
method: POST
path: "/datasets/{id}/updates"
---

# Stage a replacement file for an active dataset

`POST /datasets/{id}/updates`

## Request

- Base URL: `https://api.databazaar.io`
- URL: `https://api.databazaar.io/datasets/{id}/updates`
- Auth: HTTP bearer

Accepts human JWTs, API keys/OAuth and verified owner-linked agent sessions. Upload the complete file to the returned upload_url, then submit it. No live data is changed yet.

## Request body

- object
  - `file_name` string, required
  - `file_size` integer, required
  - `format` string, required
  - `notes` string
  - `coverage_label` string

## Response `201`

update_id, upload_url, path and submit_endpoint

## Other responses

- `409`: Dataset cannot be replaced in its current state

---

[API](https://skmtc.dev/databazaar/apis/databazaar-api.md) · [All operations](https://skmtc.dev/databazaar/apis/databazaar-api/llms.txt) · [OpenAPI document](https://skmtc.dev/databazaar/apis/databazaar-api/revisions/02e6531ad801?raw)
