Skip to main content
POST
Preview copying or moving rows into another table

Authorizations

X-API-Key
string
header
required

Path Parameters

table_id
string<uuid>
required

Body

application/json

The copy's own body, which its preview takes too: the rows, where to, and what runs.

Send record_ids for ticked rows, or all: true for every row the listing matches, narrowed by where/row_status and leaving out except_record_ids. Send target_table_id for a table the workspace has, or new_table_name for a new one; a preview takes neither too, for a new table under the name it suggests. The copy itself adds only idempotency_key (TableRowCopyCreateSchema) and needs one of the two.

all
boolean
default:false

Copy every row the listing matches. Only honoured without record_ids.

except_record_ids
string<uuid>[] | null

Leave these rows out of a selection of every matching row: the rows unticked after Select all. At most 1000.

Required array length: 1 - 1000 elements
mode
enum<string>
default:copy

copy keeps the rows; move deletes each row here once it is added there. A preview answers the same either way but for the name it suggests for a new table.

Available options:
copy,
move
new_table_name
string | null

The new table's name, when there is no target_table_id. It lists the same kind of rows (people, companies) and sits in the same folder.

Required string length: 1 - 255
record_ids
string<uuid>[] | null

The rows to copy, by record ID, in the order they are added: when the other table fills up, the first ones are copied.

Required array length: 1 - 10000 elements
row_status
enum<string> | null

Narrow an all selection to errored or fully computed rows.

Available options:
errored,
fully_computed
run_column_ids
string<uuid>[]

The other table's run columns (enrichments, AI columns, exports) to run on the rows that are added. Every other one is held back on them, switched on or not. A preview prices every run column the other table has, a row at a time, and what the ones named here cost on the rows that fit.

Maximum array length: 100
skipped_column_ids
string<uuid>[]

Columns of the rows' table to leave out. Every other column is copied.

Maximum array length: 500
sorts
TableRowSortSchema · object[]

The order an all selection is copied in, as the view shows it: when the other table fills up, the rows first in this order are the ones copied. Ticked rows are copied in the order record_ids lists them.

Maximum array length: 3
target_table_id
string<uuid> | null

The table the rows are copied into. Omit, with new_table_name, to make a new table.

where
TableRowsWhereSchema · object | null

Narrow an all selection to rows matching this filter tree.

Response

Successful Response

What a copy into a table would do, before anything is made.

columns
TableRowCopyColumnSchema · object[]
required
fitting_rows
integer
required

How many of the rows the other table has room for.

max_rows_per_table
integer
required
no_room_rows
integer
required

How many it has no room for: they are not copied.

row_cap_is_plan
boolean
required

Whether a bigger plan lifts the row limit.

run_columns
TableRowCopyRunColumnSchema · object[]
required
run_credits
number
required

The most the run columns in run_column_ids can cost on the rows that fit, in credits; 0 with none named.

run_usual_credits
number
required

What they usually cost on those rows, in credits; never above run_credits.

selected_rows
integer
required
suggested_table_name
string
required

The name a new table for these rows starts with, one no table has: " (copy)", " (copy 2)" and on; " (moved)" for a move.

target_name
string
required
target_row_count
integer
required
target_table_id
string<uuid> | null
required