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

# Upsert

`POST /api/v1/database/upsert`

## Request

- Base URL: `https://api.caresquare.com.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.caresquare.com.au/api/v1/database/upsert`
- Auth: none declared. Required headers: `table-name`

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/caresquare-api.md) - [All operations](https://skmtc.dev/caresquare/apis/caresquare-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caresquare/apis/caresquare-api/revisions/d428fe38bf62?raw)
