Preview 1–200 revision-bound records for a field patch, duplication with regenerated automatic IDs, or deletion. Validate native constraints and roll back every simulated effect. Return row-specific conflicts and a bounded sample; no records or counters change.
curl --request POST \
--url http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedSchemaVersion": 1,
"rows": [
{
"rowId": "01J00000000000000000000003",
"expectedVersion": "1"
}
],
"action": {
"type": "set",
"values": {
"NAME": "Updated name"
}
}
}
'import requests
url = "http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview"
payload = {
"expectedSchemaVersion": 1,
"rows": [
{
"rowId": "01J00000000000000000000003",
"expectedVersion": "1"
}
],
"action": {
"type": "set",
"values": { "NAME": "Updated name" }
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectedSchemaVersion: 1,
rows: [{rowId: '01J00000000000000000000003', expectedVersion: '1'}],
action: {type: 'set', values: {NAME: 'Updated name'}}
})
};
fetch('http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4310",
CURLOPT_URL => "http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'expectedSchemaVersion' => 1,
'rows' => [
[
'rowId' => '01J00000000000000000000003',
'expectedVersion' => '1'
]
],
'action' => [
'type' => 'set',
'values' => [
'NAME' => 'Updated name'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview"
payload := strings.NewReader("{\n \"expectedSchemaVersion\": 1,\n \"rows\": [\n {\n \"rowId\": \"01J00000000000000000000003\",\n \"expectedVersion\": \"1\"\n }\n ],\n \"action\": {\n \"type\": \"set\",\n \"values\": {\n \"NAME\": \"Updated name\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expectedSchemaVersion\": 1,\n \"rows\": [\n {\n \"rowId\": \"01J00000000000000000000003\",\n \"expectedVersion\": \"1\"\n }\n ],\n \"action\": {\n \"type\": \"set\",\n \"values\": {\n \"NAME\": \"Updated name\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectedSchemaVersion\": 1,\n \"rows\": [\n {\n \"rowId\": \"01J00000000000000000000003\",\n \"expectedVersion\": \"1\"\n }\n ],\n \"action\": {\n \"type\": \"set\",\n \"values\": {\n \"NAME\": \"Updated name\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"action": "set",
"total": 123,
"valid": 100,
"schemaVersion": 1073741824,
"issues": [
{
"index": 99,
"rowId": "<string>",
"code": "<string>",
"message": "<string>",
"fieldId": "<string>",
"ruleId": "<string>"
}
],
"sample": [
{
"rowId": "<string>",
"before": {},
"after": {}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}Preview bulk rows
Preview 1–200 revision-bound records for a field patch, duplication with regenerated automatic IDs, or deletion. Validate native constraints and roll back every simulated effect. Return row-specific conflicts and a bounded sample; no records or counters change.
POST
/
v1
/
orgs
/
{orgId}
/
databases
/
{databaseId}
/
tables
/
{tableId}
/
rows
/
bulk
/
preview
Preview 1–200 revision-bound records for a field patch, duplication with regenerated automatic IDs, or deletion. Validate native constraints and roll back every simulated effect. Return row-specific conflicts and a bounded sample; no records or counters change.
curl --request POST \
--url http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedSchemaVersion": 1,
"rows": [
{
"rowId": "01J00000000000000000000003",
"expectedVersion": "1"
}
],
"action": {
"type": "set",
"values": {
"NAME": "Updated name"
}
}
}
'import requests
url = "http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview"
payload = {
"expectedSchemaVersion": 1,
"rows": [
{
"rowId": "01J00000000000000000000003",
"expectedVersion": "1"
}
],
"action": {
"type": "set",
"values": { "NAME": "Updated name" }
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectedSchemaVersion: 1,
rows: [{rowId: '01J00000000000000000000003', expectedVersion: '1'}],
action: {type: 'set', values: {NAME: 'Updated name'}}
})
};
fetch('http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4310",
CURLOPT_URL => "http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'expectedSchemaVersion' => 1,
'rows' => [
[
'rowId' => '01J00000000000000000000003',
'expectedVersion' => '1'
]
],
'action' => [
'type' => 'set',
'values' => [
'NAME' => 'Updated name'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview"
payload := strings.NewReader("{\n \"expectedSchemaVersion\": 1,\n \"rows\": [\n {\n \"rowId\": \"01J00000000000000000000003\",\n \"expectedVersion\": \"1\"\n }\n ],\n \"action\": {\n \"type\": \"set\",\n \"values\": {\n \"NAME\": \"Updated name\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expectedSchemaVersion\": 1,\n \"rows\": [\n {\n \"rowId\": \"01J00000000000000000000003\",\n \"expectedVersion\": \"1\"\n }\n ],\n \"action\": {\n \"type\": \"set\",\n \"values\": {\n \"NAME\": \"Updated name\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4310/v1/orgs/{orgId}/databases/{databaseId}/tables/{tableId}/rows/bulk/preview")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectedSchemaVersion\": 1,\n \"rows\": [\n {\n \"rowId\": \"01J00000000000000000000003\",\n \"expectedVersion\": \"1\"\n }\n ],\n \"action\": {\n \"type\": \"set\",\n \"values\": {\n \"NAME\": \"Updated name\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"action": "set",
"total": 123,
"valid": 100,
"schemaVersion": 1073741824,
"issues": [
{
"index": 99,
"rowId": "<string>",
"code": "<string>",
"message": "<string>",
"fieldId": "<string>",
"ruleId": "<string>"
}
],
"sample": [
{
"rowId": "<string>",
"before": {},
"after": {}
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": "<unknown>"
}
}Authorizations
apiKeyoauth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Pattern:
^[0-7][0-9A-HJKMNP-TV-Z]{25}$Pattern:
^[0-7][0-9A-HJKMNP-TV-Z]{25}$Pattern:
^[0-7][0-9A-HJKMNP-TV-Z]{25}$Body
application/json
Response
Authorised operation result.
Available options:
set, duplicate, delete Required range:
x <= 200Required range:
0 <= x <= 200Required range:
1 <= x <= 2147483647Maximum array length:
200Show child attributes
Show child attributes
Maximum array length:
10Show child attributes
Show child attributes
Was this page helpful?
