---
title: "Fill Database"
method: POST
path: "/api/databases/fill"
tags: ["Database Connections"]
---

# Fill Database

`POST /api/databases/fill`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/databases/fill`
- Auth: HTTP bearer

Fill/insert data into database with optional auto-mapping

Similar to Excel filling, but for databases

Args:
    fill_request: Connection ID, table name, data, and auto-mapping option

Returns:
    Insert results

## Request body

- FillRequest: Request model for filling/inserting data into database
  - `connection_id` string, required
  - `table_name` string, required
  - `data` object[], required
  - `auto_map` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
