---
title: "Upsert"
method: POST
path: "/api/v1/database/upsert"
---

# Upsert

`POST /api/v1/database/upsert`

Upsert arbitrary data into the database.
Args:
    data (List[Dict]): List of dictionaries containing the data to upsert
    table_name (str): Name of the table to upsert into (provided in header)
Returns:
    dict: Result of the upsert operation with verification and summary

## Headers

- `table-name` string, required

## Request body

- object[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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