---
title: "Upload microdata data file"
method: POST
path: "/data/datafile/{id}"
tags: ["Microdata"]
---

# Upload microdata data file

`POST /data/datafile/{id}`

Upload a microdata data file (CSV, DTA, SAV, etc.). The file will be processed and metadata extracted automatically.

## Path parameters

- `id` string, required

## Response `200`

Data file uploaded successfully

- object
  - `status` string
  - `result` object
    - `uploaded` object
      - `uploaded_file_name` string
      - `base64` string
    - `file_id` string

## Other responses

- `400` — Bad request - project not found, file upload failed, or invalid parameters

## Changes

- **2026-02-23** `5bfc4d9dc1c8` — 6 warning
  - removed the request property `data_checks`
  - removed the request property `description`
  - removed the request property `missing_data`
  - removed the request property `notes`
  - …2 more

[Change history](https://skmtc.dev/worldbank/apis/metadata-editor-api/changes/data/datafile/:id/post.md)

---

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