---
title: "Upsert Custom Rows"
method: POST
path: "/core/custom-data/tables/{name}/upsert"
tags: ["custom_data"]
---

# Upsert Custom Rows

`POST /core/custom-data/tables/{name}/upsert`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/custom-data/tables/{name}/upsert`
- Auth: HTTP bearer

Write 1..N rows. Additive — cannot delete by omission, so no guard.

## Path parameters

- `name` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- UpsertRowsRequest
  - `rows` object[], required

## Response `200`

Successful Response

- WriteResultSchema: The writer's report. Warnings are advisory; the apply already happened.
  - `table` string, required
  - `received` integer, required
  - `written` integer, required
  - `unchanged` integer, required
  - `tombstoned` integer, required
  - `live_before` integer, nullable
  - `live_after` integer, nullable
  - `warnings` string[]
  - `type_mismatches` object
  - `undeclared_properties` string[]
  - `view` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

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