---
title: "Update Custom Table"
method: PATCH
path: "/core/custom-data/tables/{name}"
tags: ["custom_data"]
---

# Update Custom Table

`PATCH /core/custom-data/tables/{name}`

## 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}`
- Auth: HTTP bearer

Edit a table's declared schema, and regenerate its typed view.

Agent tools already generated from the previous schema are NOT rewritten:
nothing silently mutates a live agent's tool surface. Regenerating is an
explicit call to `/tool-schema` followed by an agent-config edit.

## Path parameters

- `name` string, required

## Headers

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

## Request body

- CustomTableUpdateRequest
  - `schema` object, required

## Response `200`

Successful Response

- CustomTableSchema: A table row. Stats fields are present only on the single-table read.
  - `id` integer, required
  - `organization_id` string, required
  - `name` string, required
  - `schema` object, required
  - `created_at` string, nullable
  - `updated_at` string, nullable
  - `created_by` string, nullable
  - `modified_by` string, nullable
  - `live_rows` integer, nullable
  - `tombstoned_rows` integer, nullable
  - `last_changed_at` string, nullable
  - `embeddable` boolean, nullable
  - `embedded_rows` integer, nullable
  - `pending_rows` integer, 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)
