Custom data
Update Custom Table
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.
PATCH
/
core
/
custom-data
/
tables
/
{name}
Update Custom Table
curl --request PATCH \
--url https://api.anyreach.ai/core/custom-data/tables/{name} \
--header 'Content-Type: application/json' \
--data '{
"schema": {}
}'import requests
url = "https://api.anyreach.ai/core/custom-data/tables/{name}"
payload = { "schema": {} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({schema: {}})
};
fetch('https://api.anyreach.ai/core/custom-data/tables/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anyreach.ai/core/custom-data/tables/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'schema' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anyreach.ai/core/custom-data/tables/{name}"
payload := strings.NewReader("{\n \"schema\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.anyreach.ai/core/custom-data/tables/{name}")
.header("Content-Type", "application/json")
.body("{\n \"schema\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/core/custom-data/tables/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"schema\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"organization_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Example",
"schema": {},
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z",
"created_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"live_rows": 1,
"tombstoned_rows": 1,
"last_changed_at": "2026-01-15T09:30:00Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Organization ID for user PATs (pat_ prefix tokens)
Path Parameters
Body
application/json
Response
Successful Response
A table row. Stats fields are present only on the single-table read.
⌘I
Update Custom Table
curl --request PATCH \
--url https://api.anyreach.ai/core/custom-data/tables/{name} \
--header 'Content-Type: application/json' \
--data '{
"schema": {}
}'import requests
url = "https://api.anyreach.ai/core/custom-data/tables/{name}"
payload = { "schema": {} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({schema: {}})
};
fetch('https://api.anyreach.ai/core/custom-data/tables/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anyreach.ai/core/custom-data/tables/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'schema' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anyreach.ai/core/custom-data/tables/{name}"
payload := strings.NewReader("{\n \"schema\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.anyreach.ai/core/custom-data/tables/{name}")
.header("Content-Type", "application/json")
.body("{\n \"schema\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/core/custom-data/tables/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"schema\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"organization_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Example",
"schema": {},
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z",
"created_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_by": "user:3fa85f64-5717-4562-b3fc-2c963f66afa6",
"live_rows": 1,
"tombstoned_rows": 1,
"last_changed_at": "2026-01-15T09:30:00Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
